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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • 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(); } }

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: