mivanac commented on code in PR #7856:
URL: https://github.com/apache/geode/pull/7856#discussion_r972039027


##########
geode-gfsh/src/main/java/org/apache/geode/management/internal/cli/commands/StartGatewaySenderCommand.java:
##########
@@ -77,6 +77,49 @@ public ResultModel startGatewaySender(@CliOption(key = 
CliStrings.START_GATEWAYS
       return ResultModel.createError(CliStrings.NO_MEMBERS_FOUND_MESSAGE);
     }
 
+    if (cleanQueues) {
+
+      Set<DistributedMember> allServers = findMembers(null, null);
+
+      if (dsMembers.size() != allServers.size()) {
+        return ResultModel.createError(CliStrings.EXECUTE_ON_ALL_MEMBERS);
+      }

Review Comment:
   Thanks for comment. It seems if partitioned region is created on just a 
group of servers, this check is not valid.



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