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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.DR3
    • None
    • Transactions
    • None
    • Release Notes
    • Documented as Known Issue
    • 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 )

      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".

              thofman Tomas Hofman
              thofman Tomas Hofman
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: