bharathv commented on a change in pull request #808: HBASE-20395 Displaying 
thrift server type on the thrift page
URL: https://github.com/apache/hbase/pull/808#discussion_r344269190
 
 

 ##########
 File path: hbase-examples/src/main/python/thrift1/DemoClient.py
 ##########
 @@ -66,6 +66,11 @@ def demo_client(host, port, is_framed_transport):
   # Connect!
   transport.open()
 
+  # Check Thrift Server Type
+  serverType = client.getThriftServerType()
+  if serverType != 1:
+    raise Exception("Mismatch between client and server, server type is %s" 
%serverType)
 
 Review comment:
   nit: space after %

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to