You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@geode.apache.org by GitBox <gi...@apache.org> on 2020/05/05 21:56:15 UTC

[GitHub] [geode] pivotal-eshu commented on a change in pull request #5053: GEODE-8072: check the null and stop the on-going query function when …

pivotal-eshu commented on a change in pull request #5053:
URL: https://github.com/apache/geode/pull/5053#discussion_r420430242



##########
File path: geode-core/src/main/java/org/apache/geode/internal/cache/execute/InternalFunctionExecutionServiceImpl.java
##########
@@ -116,6 +117,11 @@ public Execution onRegion(Region region) {
       throw new FunctionException("Region instance passed is null");
     }
 
+    if (region.getAttributes() == null) {

Review comment:
       How about check if (region.isDestroyed()) here?
   And then throw FunctionException that region is destroyed?




----------------------------------------------------------------
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.

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