Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-4036

"number-of-application-rollbacks" statistic counted multiple times during single rollback

    Details

    • Target Release:
    • Steps to Reproduce:
      Hide

      Deploy an EJB with @TransactionTimeout set to 1 second, and make an EJB method sleep for more then 1 second:

      @Stateless
      @TransactionAttribute(TransactionAttributeType.REQUIRED)
      @TransactionTimeout(value = 1, unit = TimeUnit.SECONDS)
      public class GreeterEJB implements GreeterEJBLocal {
          public String sayHello(String name) throws Exception {
              Thread.sleep(3000);
              return "Hello " + name;
          }
      }
      

      Run the EJB method and check the stats:

      /subsystem=transactions:read-resource(include-runtime=true)
      
      Show
      Deploy an EJB with @TransactionTimeout set to 1 second, and make an EJB method sleep for more then 1 second: @Stateless @TransactionAttribute(TransactionAttributeType.REQUIRED) @TransactionTimeout(value = 1, unit = TimeUnit.SECONDS) public class GreeterEJB implements GreeterEJBLocal { public String sayHello( String name) throws Exception { Thread .sleep(3000); return "Hello " + name; } } Run the EJB method and check the stats: /subsystem=transactions:read-resource(include-runtime= true )
    • Affects:
      Release Notes
    • Release Notes Docs Status:
      Documented as Known Issue

      Description

      During transaction timeout, "number-of-application-rollbacks" stat is incremented twice. As a result, "number-of-application-rollbacks" can be higher then "number-of-aborted-transactions".

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  thofman Tomas Hofman
                  Reporter:
                  thofman Tomas Hofman
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: