hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From larsgeo...@apache.org
Subject svn commit: r1501970 - /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftServer.java
Date Wed, 10 Jul 2013 20:29:10 GMT
Author: larsgeorge
Date: Wed Jul 10 20:29:10 2013
New Revision: 1501970

URL: http://svn.apache.org/r1501970
Log:
HBASE-8826 Ensure HBASE-8695 is covered in Thrift 2

Modified:
    hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftServer.java

Modified: hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftServer.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftServer.java?rev=1501970&r1=1501969&r2=1501970&view=diff
==============================================================================
--- hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftServer.java (original)
+++ hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftServer.java Wed
Jul 10 20:29:10 2013
@@ -260,14 +260,16 @@ public class ThriftServer {
       registerFilters(conf);
 
       // Construct correct ProtocolFactory
-      boolean compact = cmd.hasOption("compact");
+      boolean compact = cmd.hasOption("compact") ||
+        conf.getBoolean("hbase.regionserver.thrift.compact", false);
       TProtocolFactory protocolFactory = getTProtocolFactory(compact);
       THBaseService.Iface handler =
           ThriftHBaseServiceHandler.newInstance(conf, metrics);
       THBaseService.Processor processor = new THBaseService.Processor(handler);
       conf.setBoolean("hbase.regionserver.thrift.compact", compact);
 
-      boolean framed = cmd.hasOption("framed") || nonblocking || hsha;
+      boolean framed = cmd.hasOption("framed") ||
+        conf.getBoolean("hbase.regionserver.thrift.framed", false) || nonblocking || hsha;
       TTransportFactory transportFactory = getTTransportFactory(framed);
       conf.setBoolean("hbase.regionserver.thrift.framed", framed);
 



Mime
View raw message