Github user galen-pivotal commented on a diff in the pull request:

    https://github.com/apache/geode/pull/404#discussion_r105060205
  
    --- Diff: 
geode-core/src/main/java/org/apache/geode/redis/internal/executor/set/SRandMemberExecutor.java
 ---
    @@ -42,9 +42,8 @@ public void executeCommand(Command command, 
ExecutionHandlerContext context) {
         }
     
         ByteArrayWrapper key = command.getKey();
    -    @SuppressWarnings("unchecked")
    -    Region<ByteArrayWrapper, Boolean> keyRegion =
    -        (Region<ByteArrayWrapper, Boolean>) 
context.getRegionProvider().getRegion(key);
    +
    --- End diff --
    
    Perhaps we should make getRegion check the Metadata region and throw a 
checked TypeException if the type is wrong?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to