[
https://issues.apache.org/jira/browse/IMPALA-14935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joe McDonnell resolved IMPALA-14935.
------------------------------------
Fix Version/s: Impala 5.0.0
Resolution: Fixed
> TestHS2.test_long_polling_error takes too long to fail
> ------------------------------------------------------
>
> Key: IMPALA-14935
> URL: https://issues.apache.org/jira/browse/IMPALA-14935
> Project: IMPALA
> Issue Type: Bug
> Reporter: Dániel Gábor Vankó
> Assignee: Joe McDonnell
> Priority: Major
> Fix For: Impala 5.0.0
>
>
> test_long_polling_error tests an incorrect statement to return early, but it
> takes slighty more than 1 second on an UBSAN ARM build.
> 1777362265.5828357 - 1777362264.5089061 = ~1.074
> h3. Error Message
> {noformat}
> assert (1777362265.5828357 - 1777362264.5089061) < 1.0{noformat}
> h3. Stacktrace
> {noformat}
> hs2/hs2_test_suite.py:68: in add_session
> add_session_helper(self, protocol_version, conf_overlay, close_session,
> close_session = True
> conf_overlay = {'abort_on_error': '1', 'long_polling_time_ms':
> '10000'}
> fn = <function TestHS2.test_long_polling_error at
> 0xffff9514c720>
> protocol_version = 5
> self = <tests.hs2.test_hs2.TestHS2 object at 0xffff9246df50>
> hs2/hs2_test_suite.py:50: in add_session_helper
> fn()
> close_session = True
> close_session_req =
> TCloseSessionReq(sessionHandle=TSessionHandle(sessionId=THandleIdentifier(guid=b'\xd1O/\xbb\xd6\xbeC*\x84\xff\xa1\xccpS$\x1a',
> secret=b'Nv\x10\xc5\x1f4F\x82\x9c\xd3U\x8c\xac\xe9\no')))
> conf_overlay = {'abort_on_error': '1', 'long_polling_time_ms':
> '10000'}
> fn = <function
> needs_session.<locals>.session_decorator.<locals>.add_session.<locals>.<lambda>
> at 0xffff92469a80>
> open_session_req = TOpenSessionReq(client_protocol=5,
> username='jenkins', password=None, configuration={'abort_on_error': '1',
> 'long_polling_time_ms': '10000'})
> protocol_version = 5
> resp = TOpenSessionResp(status=TStatus(statusCode=0,
> infoMessages=None, sqlState=None, errorCode=None, errorMessage=None), se...,
> 'WRITE_KUDU_UTC_TIMESTAMPS': '0', 'http_addr':
> 'impala-ec2-rhel92-m7g-4xlarge-ondemand-1984.vpc.cloudera.com:25000'})
> self = <tests.hs2.test_hs2.TestHS2 object at 0xffff9246df50>
> hs2/hs2_test_suite.py:69: in <lambda>
> lambda: fn(self))
> fn = <function TestHS2.test_long_polling_error at
> 0xffff9514c720>
> self = <tests.hs2.test_hs2.TestHS2 object at 0xffff9246df50>
> /data/jenkins/workspace/impala-cdw-master-staging-core-ubsan-arm/repos/Impala/tests/hs2/test_hs2.py:460:
> in test_long_polling_error
> assert end_time - start_time < 1.0
> E assert (1777362265.5828357 - 1777362264.5089061) < 1.0
> end_time = 1777362265.5828357
> execute_statement_resp =
> TExecuteStatementResp(status=TStatus(statusCode=0, infoMessages=None,
> sqlState=None, errorCode=None, errorMessage=None...',
> secret=b'Nv\x10\xc5\x1f4F\x82\x9c\xd3U\x8c\xac\xe9\no'), operationType=0,
> hasResultSet=True, modifiedRowCount=None))
> get_operation_status_resp =
> TGetOperationStatusResp(status=TStatus(statusCode=0, infoMessages=None,
> sqlState=None, errorCode=None, errorMessage=No...rrorCode=None,
> errorMessage='Query b443dc6071f2c98a:d895e5b600000000 failed:\nError
> converting column: 6 to FLOAT\n\n')
> self = <tests.hs2.test_hs2.TestHS2 object at 0xffff9246df50>
> start_time = 1777362264.5089061
> statement = 'SELECT * FROM functional.alltypeserror'{noformat}
> h3. Standard Error
> {noformat}
> --------------------------------- Captured Err
> ---------------------------------
> -- 2026-04-28 00:44:24,222 INFO MainThread: beeswax:
> set client_identifier=hs2/test_hs2.py::TestHS2::test_long_polling_error;
> -- 2026-04-28 00:44:24,222 INFO MainThread: hs2:
> set client_identifier=hs2/test_hs2.py::TestHS2::test_long_polling_error;
> -- 2026-04-28 00:44:24,222 INFO MainThread: hs2-http:
> set client_identifier=hs2/test_hs2.py::TestHS2::test_long_polling_error;
> -- 2026-04-28 00:44:24,222 INFO MainThread: Could not connect to ('::1',
> 21050, 0, 0)
> Traceback (most recent call last):
> File
> "/data/jenkins/workspace/impala-cdw-master-staging-core-ubsan-arm/repos/Impala/infra/python/env-gcc10.4.0-py3/lib/python3.11/site-packages/thrift/transport/TSocket.py",
> line 137, in open
> handle.connect(sockaddr)
> ConnectionRefusedError: [Errno 111] Connection refused
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)