You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by gx...@apache.org on 2019/11/28 14:10:49 UTC

[hbase] branch master updated: HBASE-20395 Addendum Displaying thrift server type on the thrift page

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

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


The following commit(s) were added to refs/heads/master by this push:
     new d653935  HBASE-20395 Addendum Displaying thrift server type on the thrift page
d653935 is described below

commit d6539350ed0ceb187b0f265e99bc97164e0561bb
Author: Guangxu Cheng <gu...@gmail.com>
AuthorDate: Thu Nov 28 21:48:49 2019 +0800

    HBASE-20395 Addendum Displaying thrift server type on the thrift page
---
 .../src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java
index 8240ac6..c0678f2 100644
--- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java
+++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java
@@ -304,7 +304,7 @@ public class ThriftServer  extends Configured implements Tool {
           .get(THRIFT_INFO_SERVER_BINDING_ADDRESS, THRIFT_INFO_SERVER_BINDING_ADDRESS_DEFAULT);
       infoServer = new InfoServer("thrift", a, port, false, conf);
       infoServer.setAttribute("hbase.conf", conf);
-      infoServer.setAttribute("hbase.thrift.server.type", metrics.getThriftServerType());
+      infoServer.setAttribute("hbase.thrift.server.type", metrics.getThriftServerType().name());
       infoServer.start();
     }
   }