[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/aop/statetransfer ...

Manik Surtani msurtani at jboss.com
Tue Dec 12 11:45:56 EST 2006


  User: msurtani
  Date: 06/12/12 11:45:56

  Modified:    tests/functional/org/jboss/cache/aop/statetransfer  Tag:
                        Branch_JBossCache_1_4_0
                        StateTransferAopTestBase.java
  Log:
  wc
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.15.2.1  +36 -13    JBossCache/tests/functional/org/jboss/cache/aop/statetransfer/Attic/StateTransferAopTestBase.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: StateTransferAopTestBase.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/aop/statetransfer/Attic/StateTransferAopTestBase.java,v
  retrieving revision 1.15
  retrieving revision 1.15.2.1
  diff -u -b -r1.15 -r1.15.2.1
  --- StateTransferAopTestBase.java	5 May 2006 12:06:57 -0000	1.15
  +++ StateTransferAopTestBase.java	12 Dec 2006 16:45:56 -0000	1.15.2.1
  @@ -306,12 +306,16 @@
       * 
       * @throws Exception
       */
  -   public void testConcurrentActivationSync() throws Exception
  -   { 
  -      log.info("Enter testConcurrentActivationSync");
         
  -      concurrentActivationTest(true);
  -   }
  +   // commented out since concurrent activations will cause deadlocks and then timeouts since JBCACHE-875.
  +   // Correctness over performance. - Manik
  +   
  +//   public void testConcurrentActivationSync() throws Exception
  +//   {
  +//      log.info("Enter testConcurrentActivationSync");
  +//
  +//      concurrentActivationTest(true);
  +//   }
      
      /**
       * Tests concurrent activation of the same subtree by multiple nodes in a 
  @@ -418,13 +422,17 @@
       * 
       * @throws Exception
       */
  -   public void testConcurrentUseSync() throws Exception
  -   { 
  -      log.info("Enter testConcurrentUseSync");
         
  -      concurrentUseTest(true);
  -   }
  +   // commented out since concurrent activations will cause deadlocks and then timeouts since JBCACHE-875.
  +   // Correctness over performance. - Manik
      
  +//   public void testConcurrentUseSync() throws Exception
  +//   {
  +//      log.info("Enter testConcurrentUseSync");
  +//
  +//      concurrentUseTest(true);
  +//   }
  +//
      /**
       * Tests partial state transfer under heavy concurrent load and REPL_ASYNC.
       * See <code>concurrentUseTest</code> for details.
  @@ -474,6 +482,10 @@
            {
               stressors[i] = new CacheStressor(semaphore, names[i], sync);
               caches[i + 1] = stressors[i].getTreeCache();
  +            stressors[i].getTreeCache().put("/" + names[i], null);
  +         }
  +         for (int i = 0; i < count; i++)
  +         {
               stressors[i].start();
               // Give each one a chance to stabilize
               TestingUtil.sleepThread(100);
  @@ -774,6 +786,17 @@
         {
            try
            {
  +            TransactionManager m = cache.getTransactionManager();
  +            try
  +            {
  +               if (m!= null && m.getTransaction() != null)
  +               {
  +                  m.rollback();
  +               }
  +            }
  +            catch (Exception e)
  +            {
  +            }
               cache.stopService();
               cache.destroyService();
            }
  
  
  



More information about the jboss-cvs-commits mailing list