[jboss-cvs] JBossCache/tests/perf/org/jboss/cache ...

Manik Surtani msurtani at jboss.com
Mon Dec 11 12:29:45 EST 2006


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

  Modified:    tests/perf/org/jboss/cache  Tag: Branch_JBossCache_1_4_0
                        ConcurrentEvictAndRemoveTest.java
  Log:
  Fixed a bunch of problems with Optimistic data versioning related to JBCACHE-894
  Updated logging libs JBCACHE-901
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.3.4.1   +5 -4      JBossCache/tests/perf/org/jboss/cache/ConcurrentEvictAndRemoveTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ConcurrentEvictAndRemoveTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/perf/org/jboss/cache/ConcurrentEvictAndRemoveTest.java,v
  retrieving revision 1.3
  retrieving revision 1.3.4.1
  diff -u -b -r1.3 -r1.3.4.1
  --- ConcurrentEvictAndRemoveTest.java	5 Dec 2005 03:17:14 -0000	1.3
  +++ ConcurrentEvictAndRemoveTest.java	11 Dec 2006 17:29:45 -0000	1.3.4.1
  @@ -11,16 +11,16 @@
   import junit.framework.Test;
   import junit.framework.TestCase;
   import junit.framework.TestSuite;
  -
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
   import org.jboss.cache.eviction.RegionManager;
   
   import java.util.Random;
  +
   /**
    * Local mode test for concurrent EvictionTimerTask evicting nodes and Client removing nodes from TreeCache.
    *
  - * @version $Revision: 1.3 $
  + * @version $Revision: 1.3.4.1 $
    * @author <a href="mailto:uwe.lamprecht at gmx.de">Uwe Lamprecht</a> July 29 2004
    */
   public final class ConcurrentEvictAndRemoveTest extends TestCase
  @@ -125,14 +125,15 @@
               log("create put/remove events");
               final int SEQUENCE_SIZE = 10000; // number of nodes processed by a single thread
               final long TIMEOUT_DEFAULT = 100000;
  -            final int MAX_TIMEOUT_FACTOR = 10;
  +            final int MAX_TIMEOUT_FACTOR = 100;
   
               for(int i = 0; i < RegionManager.CAPACITY; i = i + SEQUENCE_SIZE) {
                   final int sequenceStart = i;
                   final int sequenceEnd = i + SEQUENCE_SIZE -1;
   
                   Thread thread = new Thread(
  -                        new HelperThread(cache, sequenceStart, sequenceEnd)
  +                        new HelperThread(cache, sequenceStart, sequenceEnd),
  +                        "HelperThread processing sequence " + sequenceStart
                   );
   
                   long timeout = (HelperThread.getTime()==HelperThread.EXECUTION_TIME_NOT_INITIALIZED)?
  
  
  



More information about the jboss-cvs-commits mailing list