Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After instantiating Connection, and waiting for 5 minutes, the query table will report an error #225

Open
dengerousfuck opened this issue Aug 14, 2019 · 1 comment

Comments

@dengerousfuck
Copy link

class HBaseOperations(object):

ROBOT_LIBRARY_SCOPE = 'TEST_SUITE'
ROBOT_LIBRARY_VERSION = '1.0.0'

def __init__(self, thrift_host=None,port=9090):
    self._conn = None
    self.thrift_host = thrift_host
    if thrift_host is not None:
        self._conn = Connection(thrift_host, port=port, autoconnect=True, timeout=600)
    self._tables = None
    self._table = None
    self.hbase_query_result = None
    self.table_name = None
def  query_table(table_name):
    pass
result1 = query_table('table_name1')
time.sleep(300)
when   query_table('table_name2')
the query table will report an error:
TTransportException: TTransportException(type=4, message='TSocket read 0 bytes')
File "D:\Programs\Python\Python36\lib\site-packages\thriftpy2\transport\socket.py", line 132, in read
message='TSocket read 0 bytes')
@CodeingBoy
Copy link

+1 here, related issue: #133

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants