gesterzhou commented on a change in pull request #6964:
URL: https://github.com/apache/geode/pull/6964#discussion_r725681239



##########
File path: 
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java
##########
@@ -5557,12 +5565,16 @@ public void cleanupFailedInitialization() {
     int serials[] = getRegionAdvisor().getBucketSerials();
     RegionEventImpl event = new RegionEventImpl(this, Operation.REGION_CLOSE, 
null, false,
         getMyId(), generateEventID()/* generate EventID */);
+    RuntimeException savedFirstRuntimeException = null;
     try {
       sendDestroyRegionMessage(event, serials);
     } catch (Exception ex) {
       logger.warn(
           "PartitionedRegion#cleanupFailedInitialization(): Failed to clean 
the PartionRegion data store",
           ex);
+      if (savedFirstRuntimeException == null && ex instanceof 
RuntimeException) {

Review comment:
       done

##########
File path: 
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java
##########
@@ -5557,12 +5565,16 @@ public void cleanupFailedInitialization() {
     int serials[] = getRegionAdvisor().getBucketSerials();
     RegionEventImpl event = new RegionEventImpl(this, Operation.REGION_CLOSE, 
null, false,
         getMyId(), generateEventID()/* generate EventID */);
+    RuntimeException savedFirstRuntimeException = null;
     try {
       sendDestroyRegionMessage(event, serials);
     } catch (Exception ex) {
       logger.warn(
           "PartitionedRegion#cleanupFailedInitialization(): Failed to clean 
the PartionRegion data store",
           ex);
+      if (savedFirstRuntimeException == null && ex instanceof 
RuntimeException) {
+        savedFirstRuntimeException = (RuntimeException) ex;

Review comment:
       done




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to