Skip to content

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

@dengerousfuck

Description

@dengerousfuck

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')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions