[jboss-cvs] CacheBenchFwk/src/org/cachebench/tests ...

Manik Surtani manik at jboss.org
Mon May 21 09:03:56 EDT 2007


  User: msurtani
  Date: 07/05/21 09:03:56

  Modified:    src/org/cachebench/tests  SimpleTest.java
  Log:
  Better executor termination timeout
  
  Revision  Changes    Path
  1.8       +2 -2      CacheBenchFwk/src/org/cachebench/tests/SimpleTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SimpleTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/CacheBenchFwk/src/org/cachebench/tests/SimpleTest.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -b -r1.7 -r1.8
  --- SimpleTest.java	17 May 2007 09:38:04 -0000	1.7
  +++ SimpleTest.java	21 May 2007 13:03:56 -0000	1.8
  @@ -27,7 +27,7 @@
      protected AtomicLong numberOfBytesPut = new AtomicLong(0);
      protected long elapsedSecondsForAllPuts = 0;
      protected ExecutorService executor;
  -   private static final int EXECUTOR_SHUTDOWN_TIMEOUT_SECS = 120;
  +   private static final int EXECUTOR_SHUTDOWN_TIMEOUT_HOURS = 24; // This could be a long while.  Give it a healthy upper limit
   
      protected TestResult performTestWithObjectType(String testCaseName, CacheWrapper cache, Class valueClass, String testName, int sampleSize, int numThreads) throws Exception
      {
  @@ -228,7 +228,7 @@
         executor.shutdown();
         try
         {
  -         executor.awaitTermination(EXECUTOR_SHUTDOWN_TIMEOUT_SECS, TimeUnit.SECONDS);
  +         executor.awaitTermination(EXECUTOR_SHUTDOWN_TIMEOUT_HOURS * 60 * 60, TimeUnit.SECONDS);
         }
         catch (InterruptedException e)
         {
  
  
  



More information about the jboss-cvs-commits mailing list