Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-2643

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

    Details

    • 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 )

      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:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: