Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2202

Changes made by sessions with user trasactions enabled are leaked to other sessions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 4.0.0.Alpha3
    • 4.0.0.Alpha2
    • JCR
    • None
    • Hide

      Given the test JcrRepositoryTest#shouldWorkWithUserDefinedTransactionsThatUseRollback - which is timing dependent, add & run the following code to the test class:

        public static void main( String[] args ) throws Exception {
              JcrRepositoryTest test = new JcrRepositoryTest();
              int count = 1000;
              for (int i = 0; i < count; i++) {
                  test.beforeEach();
                  test.shouldWorkWithUserDefinedTransactionsThatUseRollback();
                  test.afterEach();
              }
          }
      
      Show
      Given the test JcrRepositoryTest#shouldWorkWithUserDefinedTransactionsThatUseRollback - which is timing dependent, add & run the following code to the test class: public static void main( String [] args ) throws Exception { JcrRepositoryTest test = new JcrRepositoryTest(); int count = 1000; for ( int i = 0; i < count; i++) { test.beforeEach(); test.shouldWorkWithUserDefinedTransactionsThatUseRollback(); test.afterEach(); } }

      Probably caused by the latest event bus modifications, changes made by sessions when user transactions are enabled are leaked (most likely on session.save() to other sessions before the transaction is committed/rolled back.

              rhauch Randall Hauch (Inactive)
              hchiorean Horia Chiorean (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: