From 0cd4cec5d24b5e7194a903e4d900f5558ed8b9a7 Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Fri, 14 Apr 2017 12:07:40 -0700 Subject: [PATCH] Revert "HBASE-17906 When a huge amount of data writing to hbase through thrift2, there will be a deadlock error. (Albert Lee)" Mistaken commit. This reverts commit 9dd5cda01747ffb91ac084792fa4a8670859e810. --- .../java/org/apache/hadoop/hbase/thrift2/ThriftServer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftServer.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftServer.java index 8f56b10da5b..560ae649188 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftServer.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftServer.java @@ -432,6 +432,9 @@ public class ThriftServer extends Configured implements Tool { throw new RuntimeException("Could not parse the value provided for the port option", e); } + // Thrift's implementation uses '0' as a placeholder for 'use the default.' + int backlog = conf.getInt(BACKLOG_CONF_KEY, 0); + // Local hostname and user name, // used only if QOP is configured. String host = null;