This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


View the commit online:
https://github.com/apache/incubator-doris/commit/9c85a04580bcadc3b5da91f380334a860c1fdc7e

The following commit(s) were added to refs/heads/master by this push:
     new 9c85a04  Add schema hash to tablet proc info (#2257)
9c85a04 is described below

commit 9c85a04580bcadc3b5da91f380334a860c1fdc7e
Author: LingBin <[email protected]>
AuthorDate: Wed Nov 20 20:06:30 2019 -0600

    Add schema hash to tablet proc info (#2257)
---
 fe/src/main/java/org/apache/doris/common/proc/TabletsProcDir.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/fe/src/main/java/org/apache/doris/common/proc/TabletsProcDir.java 
b/fe/src/main/java/org/apache/doris/common/proc/TabletsProcDir.java
index 3690dad..a19a498 100644
--- a/fe/src/main/java/org/apache/doris/common/proc/TabletsProcDir.java
+++ b/fe/src/main/java/org/apache/doris/common/proc/TabletsProcDir.java
@@ -40,7 +40,7 @@ import java.util.List;
  */
 public class TabletsProcDir implements ProcDirInterface {
     public static final ImmutableList<String> TITLE_NAMES = new 
ImmutableList.Builder<String>()
-            .add("TabletId").add("ReplicaId").add("BackendId").add("Version")
+            
.add("TabletId").add("ReplicaId").add("BackendId").add("SchemaHash").add("Version")
             
.add("VersionHash").add("LstSuccessVersion").add("LstSuccessVersionHash")
             
.add("LstFailedVersion").add("LstFailedVersionHash").add("LstFailedTime")
             .add("DataSize").add("RowCount").add("State")
@@ -50,7 +50,7 @@ public class TabletsProcDir implements ProcDirInterface {
 
     private Database db;
     private MaterializedIndex index;
-    
+
     public TabletsProcDir(Database db, MaterializedIndex index) {
         this.db = db;
         this.index = index;
@@ -71,6 +71,7 @@ public class TabletsProcDir implements ProcDirInterface {
                     tabletInfo.add(tabletId);
                     tabletInfo.add(-1); // replica id
                     tabletInfo.add(-1); // backend id
+                    tabletInfo.add(-1); // schema hash
                     tabletInfo.add("N/A"); // host name
                     tabletInfo.add(-1); // version
                     tabletInfo.add(-1); // version hash
@@ -101,6 +102,7 @@ public class TabletsProcDir implements ProcDirInterface {
                         tabletInfo.add(tabletId);
                         tabletInfo.add(replica.getId());
                         tabletInfo.add(replica.getBackendId());
+                        tabletInfo.add(replica.getSchemaHash());
                         tabletInfo.add(replica.getVersion());
                         tabletInfo.add(replica.getVersionHash());
                         tabletInfo.add(replica.getLastSuccessVersion());


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

Reply via email to