totalo commented on code in PR #1087:
URL: https://github.com/apache/incubator-pegasus/pull/1087#discussion_r936175874


##########
java-client/src/main/java/org/apache/pegasus/client/PegasusTable.java:
##########
@@ -98,6 +128,10 @@ public Future<Long> asyncSortKeyCount(byte[] hashKey, int 
timeout) {
         new Table.ClientOPCallback() {
           @Override
           public void onCompletion(client_operator clientOP) {
+            if (!(clientOP instanceof rrdb_sortkey_count_operator)) {
+              promise.setFailure(new PException("Unexpected client operator"));

Review Comment:
   Consistent with the above c-format problem, the current usage is like this, 
I think the follow-up pr can be optimized.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to