Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-1434

[GSS] (6.1.z) SingleSessionCommandService Interceptor stack is lost when rollback

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 6.1.0
    • 6.1.0
    • jBPM Core
    • None

      +++ This bug was initially created as a clone of Bug #1241358 +++

      Description of problem:

      RuntimeManager adds OptimisticLockRetryInterceptor and TransactionLockInterceptor on top of SingleSessionCommandService$TransactionInterceptor on KieSession initialization.

      But once a transaction is rolled back in later process execution, SingleSessionCommandService.commandService is overwritten by new TransactionInterceptor(kContext) in initExistingKnowledgeSession() hence the Interceptor stack is lost.

      How reproducible:

      Once a process execution transaction is rolled back, always reproducible. It could be serious in case of Singleton strategy because an application keeps using the ksession alive.

      Steps to Reproduce:
      1. Going to send a pull request.

      — Additional comment from Toshiya Kobayashi on 2015-07-09 03:02:48 EDT —

      PR test case:
      https://github.com/droolsjbpm/jbpm/pull/274

      — Additional comment from Toshiya Kobayashi on 2015-07-09 03:09:01 EDT —

      PR fix proposal:
      https://github.com/droolsjbpm/drools/pull/458

      Please review.

              swiderski.maciej Maciej Swiderski (Inactive)
              rhn-support-tkobayas Toshiya Kobayashi
              Karel Suta Karel Suta
              Karel Suta Karel Suta
              Kris Verlaenen, Maciej Swiderski (Inactive), Marek Baluch, Radovan Synek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: