mhansonp commented on code in PR #6976:
URL: https://github.com/apache/geode/pull/6976#discussion_r874090971


##########
geode-core/src/distributedTest/java/org/apache/geode/cache30/PutAllMultiVmDUnitTest.java:
##########
@@ -347,22 +319,12 @@ public void testPutAllFromPreload() throws 
InterruptedException {
 
   @Test
   public void testSimplePutAll() {
-    Host host = Host.getHost(0);
-    VM vm0 = host.getVM(0);
-    VM vm1 = host.getVM(1);
+    VM vm0 = VM.getVM(0);
+    VM vm1 = VM.getVM(1);
 
-    SerializableRunnable clear = new CacheSerializableRunnable("clear") {
-      @Override
-      public void run2() throws CacheException {
-        try {
-          region.clear();
-        } catch (Exception ex) {
-          ex.printStackTrace();
-        }
-      }
-    };// end of clear
+    // end of clear
 
-    vm0.invoke(new CacheSerializableRunnable("testSimplePutAll1") {
+    vm0.invoke("testSimplePutAll1", new CacheSerializableRunnable() {

Review Comment:
   You cannot do that because CacheSerializableRunnable throws a CacheException
   
   `  @Override
     public void run() {
       try {
         run2();
       } catch (CacheException exception) {
         String message = "While invoking \"" + this + "\"";
         throw new CacheSerializableRunnableException(message, exception);
       }
     }
   `



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@geode.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to