[jbosscache-commits] JBoss Cache SVN: r5745 - in benchmarks/benchmark-fwk/trunk/src/org/cachebench: warmup and 1 other directory.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Tue Apr 29 07:35:15 EDT 2008


Author: mircea.markus
Date: 2008-04-29 07:35:15 -0400 (Tue, 29 Apr 2008)
New Revision: 5745

Modified:
   benchmarks/benchmark-fwk/trunk/src/org/cachebench/tests/SessionSimulatorTest.java
   benchmarks/benchmark-fwk/trunk/src/org/cachebench/warmup/PutGetCacheWarmup.java
Log:
updated tests to avoid throwablesto break the flow

Modified: benchmarks/benchmark-fwk/trunk/src/org/cachebench/tests/SessionSimulatorTest.java
===================================================================
--- benchmarks/benchmark-fwk/trunk/src/org/cachebench/tests/SessionSimulatorTest.java	2008-04-29 11:04:31 UTC (rev 5744)
+++ benchmarks/benchmark-fwk/trunk/src/org/cachebench/tests/SessionSimulatorTest.java	2008-04-29 11:35:15 UTC (rev 5745)
@@ -90,9 +90,9 @@
                buf = (byte[]) cacheWrapper.get(getSessionEntry(randomAttribute));
                totalBytesRead += buf.length;
                reads++;
-            } catch (Exception e)
+            } catch (Throwable e)
             {
-               log.trace("Error appeared whilst reading from cache:" + e.getMessage());
+               log.warn("Error appeared whilst reading from cache:" + e.getMessage());
             }
          } else
          {             // write
@@ -102,9 +102,9 @@
                cacheWrapper.put(getSessionEntry(randomAttribute), buf);
                totalBytesWritten += buf.length;
                writes++;
-            } catch (Exception e)
+            } catch (Throwable e)
             {
-               log.trace("Error appeared whilst writing to cache:" + e.getMessage());
+               log.warn("Error appeared whilst writing to cache:" + e.getMessage());
             }
          }
       }

Modified: benchmarks/benchmark-fwk/trunk/src/org/cachebench/warmup/PutGetCacheWarmup.java
===================================================================
--- benchmarks/benchmark-fwk/trunk/src/org/cachebench/warmup/PutGetCacheWarmup.java	2008-04-29 11:04:31 UTC (rev 5744)
+++ benchmarks/benchmark-fwk/trunk/src/org/cachebench/warmup/PutGetCacheWarmup.java	2008-04-29 11:35:15 UTC (rev 5745)
@@ -23,7 +23,7 @@
          try
          {
             wrapper.put(String.valueOf(opCount), String.valueOf(opCount));
-         } catch (Exception e)
+         } catch (Throwable e)
          {
             log.warn("Exception on cache warmup", e);
          }




More information about the jbosscache-commits mailing list