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:48 UTC
[hbase] branch branch-2 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 branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2 by this push:
new e33c95c HBASE-20395 Addendum Displaying thrift server type on the thrift page
e33c95c is described below
commit e33c95cf9fb04ed3dd4b6d5832c63662a68cd85c
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 626dfd3..f491785 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();
}
}