sabbey37 commented on a change in pull request #6521:
URL: https://github.com/apache/geode/pull/6521#discussion_r639890410



##########
File path: 
geode-apis-compatible-with-redis/src/main/java/org/apache/geode/redis/internal/executor/cluster/ClusterExecutor.java
##########
@@ -129,6 +129,18 @@ private RedisResponse getNodes(ExecutionHandlerContext 
ctx) throws InterruptedEx
     return RedisResponse.bulkString(response.toString());
   }
 
+  private Map<String, List<Integer>> getMemberBuckets(
+      List<SlotAdvisor.MemberBucketSlot> bucketSlots) {
+    Map<String, List<Integer>> result = new HashMap<>();
+
+    for (SlotAdvisor.MemberBucketSlot mbs : bucketSlots) {
+      result.computeIfAbsent(mbs.getMember().getUniqueId(), k -> new 
ArrayList<>())
+          .add(mbs.getBucketId());
+    }

Review comment:
       Ah, nevermind, I see that it happens when we call `getBucketSlots`




-- 
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:
us...@infra.apache.org


Reply via email to