kudu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ale...@apache.org
Subject [kudu] 01/03: [java] add state in ScanRequest toString
Date Fri, 07 Aug 2020 01:32:17 GMT
This is an automated email from the ASF dual-hosted git repository.

alexey pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git

commit 433c1771f05d25474554e1dd628f6a3d89c8f704
Author: Li Zhiming <lizhiming@thinkingdata.cn>
AuthorDate: Tue Aug 4 12:00:58 2020 +0800

    [java] add state in ScanRequest toString
    
    Change-Id: Id5b90c8352eb36406663a0a60041462a57ffde76
    Signed-off-by: Li Zhiming <lizhiming@thinkingdata.cn>
    Reviewed-on: http://gerrit.cloudera.org:8080/16281
    Reviewed-by: Grant Henke <granthenke@apache.org>
    Tested-by: Alexey Serbin <aserbin@cloudera.com>
    Reviewed-by: Alexey Serbin <aserbin@cloudera.com>
---
 .../src/main/java/org/apache/kudu/client/AsyncKuduScanner.java         | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/java/kudu-client/src/main/java/org/apache/kudu/client/AsyncKuduScanner.java b/java/kudu-client/src/main/java/org/apache/kudu/client/AsyncKuduScanner.java
index 3d1f0fa..c736bb5 100644
--- a/java/kudu-client/src/main/java/org/apache/kudu/client/AsyncKuduScanner.java
+++ b/java/kudu-client/src/main/java/org/apache/kudu/client/AsyncKuduScanner.java
@@ -1019,7 +1019,7 @@ public final class AsyncKuduScanner {
    */
   final class ScanRequest extends KuduRpc<Response> {
 
-    State state;
+    private final State state;
 
     /** The token with which to authorize this RPC. */
     private Token.SignedTokenPB authzToken;
@@ -1217,6 +1217,7 @@ public final class AsyncKuduScanner {
     @Override
     public String toString() {
       return "ScanRequest(scannerId=" + Bytes.pretty(scannerId) +
+          ", state=" + state +
           (tablet != null ? ", tablet=" + tablet.getTabletId() : "") +
           ", attempt=" + attempt + ", " + super.toString() + ")";
     }


Mime
View raw message