directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gokt...@apache.org
Subject svn commit: r1377449 - /directory/apacheds/branches/apacheds-txns/core-shared/src/test/java/org/apache/directory/server/core/shared/txn/DefaultTxnManagerTest.java
Date Sun, 26 Aug 2012 15:44:09 GMT
Author: gokturk
Date: Sun Aug 26 15:44:08 2012
New Revision: 1377449

URL: http://svn.apache.org/viewvc?rev=1377449&view=rev
Log:
* Fix to Randomly Failing Test: We have to disable flushing for this test, since we can't
be sure if consecutively issued transactions will remain in commit queue.

Modified:
    directory/apacheds/branches/apacheds-txns/core-shared/src/test/java/org/apache/directory/server/core/shared/txn/DefaultTxnManagerTest.java

Modified: directory/apacheds/branches/apacheds-txns/core-shared/src/test/java/org/apache/directory/server/core/shared/txn/DefaultTxnManagerTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-txns/core-shared/src/test/java/org/apache/directory/server/core/shared/txn/DefaultTxnManagerTest.java?rev=1377449&r1=1377448&r2=1377449&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-txns/core-shared/src/test/java/org/apache/directory/server/core/shared/txn/DefaultTxnManagerTest.java
(original)
+++ directory/apacheds/branches/apacheds-txns/core-shared/src/test/java/org/apache/directory/server/core/shared/txn/DefaultTxnManagerTest.java
Sun Aug 26 15:44:08 2012
@@ -193,6 +193,8 @@ public class DefaultTxnManagerTest
         List<ReadWriteTxn> dependentTxns;
         try
         {
+            txnManager.setDoNotFlush();
+
             txnManager.beginTransaction( false );
             Transaction txn1 = txnManager.getCurTxn();
             txnManager.commitTransaction();
@@ -223,6 +225,8 @@ public class DefaultTxnManagerTest
             assertTrue( dependentTxns.contains( txn4 ) );
 
             txnManager.commitTransaction();
+
+            txnManager.unsetDoNotFlush();
         }
         catch ( TxnConflictException e )
         {



Mime
View raw message