[ 
https://issues.apache.org/jira/browse/IMPALA-14920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18076484#comment-18076484
 ] 

ASF subversion and git services commented on IMPALA-14920:
----------------------------------------------------------

Commit 09feb8eac4376f680940c52f677c6a082f75d5e3 in impala's branch 
refs/heads/master from stiga-huang
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=09feb8eac ]

IMPALA-14920: Remove lower bound check on GetOperationStatus duration in 
test_long_polling_success

The test measures the duration of GetOperationStatus after submitting a
query that runs longer than 80ms. The main goal of the test is verifying
GetOperationStatus returns immediately after the query state becomes
FINISHED. It also verifies the duration of GetOperationStatus is longer
than 80ms. This is flaky since the query might already be running when
the GetOperationStatus request is submitted. On the other hand, FINISHED
state just means client can start fetching results. Some result rows
might not be generated yet so we can't guarantee the GetOperationStatus
duration is longer than 80ms.

This simply removes the lower bound check on 80ms.

Change-Id: I5047626b10d4c1e6489b41b6da6c4906cd62ca1b
Reviewed-on: http://gerrit.cloudera.org:8080/24235
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>


> TestHS2.test_long_polling_success fails with time_diff too small
> ----------------------------------------------------------------
>
>                 Key: IMPALA-14920
>                 URL: https://issues.apache.org/jira/browse/IMPALA-14920
>             Project: IMPALA
>          Issue Type: Bug
>            Reporter: Quanlong Huang
>            Assignee: Quanlong Huang
>            Priority: Major
>              Labels: broken-build
>
> h3. Error Message
> assert 0.07497954368591309 >= 0.08
> 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 = {'long_polling_time_ms': '10000'}
>         fn         = <function TestHS2.test_long_polling_success at 
> 0x7f3f9da13560>
>         protocol_version = 5
>         self       = <tests.hs2.test_hs2.TestHS2 object at 0x7f3f9aa82e10>
> hs2/hs2_test_suite.py:50: in add_session_helper
>     fn()
>         close_session = True
>         close_session_req = 
> TCloseSessionReq(sessionHandle=TSessionHandle(sessionId=THandleIdentifier(guid=b'\xdb\xe7\xf9\xe3\xb1yE\x7f\xbfJEk\xa5\xd0\xc7A',
>  secret=b'\x19\xa8Tj\x07\x1fH\x1f\x8f\xd6\x8b2\xf3\xc5\xcd\x83')))
>         conf_overlay = {'long_polling_time_ms': '10000'}
>         fn         = <function 
> needs_session.<locals>.session_decorator.<locals>.add_session.<locals>.<lambda>
>  at 0x7f3f9ab61f80>
>         open_session_req = TOpenSessionReq(client_protocol=5, 
> username='jenkins', password=None, configuration={'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-m6i-4xlarge-ondemand-16e6.vpc.cloudera.com:25000'})
>         self       = <tests.hs2.test_hs2.TestHS2 object at 0x7f3f9aa82e10>
> hs2/hs2_test_suite.py:69: in <lambda>
>     lambda: fn(self))
>         fn         = <function TestHS2.test_long_polling_success at 
> 0x7f3f9da13560>
>         self       = <tests.hs2.test_hs2.TestHS2 object at 0x7f3f9aa82e10>
> /data/jenkins/workspace/impala-cdw-master-staging-core/repos/Impala/tests/hs2/test_hs2.py:398:
>  in test_long_polling_success
>     assert time_diff >= 0.08
> E   assert 0.07497954368591309 >= 0.08
>         end_time   = 1776999337.8833542
>         execute_statement_resp = 
> TExecuteStatementResp(status=TStatus(statusCode=0, infoMessages=None, 
> sqlState=None, errorCode=None, 
> errorMessage=None...t=b'\x19\xa8Tj\x07\x1fH\x1f\x8f\xd6\x8b2\xf3\xc5\xcd\x83'),
>  operationType=0, hasResultSet=True, modifiedRowCount=None))
>         get_operation_status_resp = 
> TGetOperationStatusResp(status=TStatus(statusCode=0, infoMessages=None, 
> sqlState=None, errorCode=None, errorMessage=None), operationState=2, 
> sqlState=None, errorCode=None, errorMessage=None)
>         self       = <tests.hs2.test_hs2.TestHS2 object at 0x7f3f9aa82e10>
>         start_time = 1776999337.8083746
>         statement  = 'SELECT count(sleep(10)) from functional.alltypestiny'
>         time_diff  = 0.07497954368591309{noformat}
> h3. Standard Error
> {noformat}
> --------------------------------- Captured Err 
> ---------------------------------
> -- 2026-04-23 19:55:37,753 INFO     MainThread: beeswax: 
> set client_identifier=hs2/test_hs2.py::TestHS2::test_long_polling_success;
> -- 2026-04-23 19:55:37,753 INFO     MainThread: hs2: 
> set client_identifier=hs2/test_hs2.py::TestHS2::test_long_polling_success;
> -- 2026-04-23 19:55:37,753 INFO     MainThread: hs2-http: 
> set client_identifier=hs2/test_hs2.py::TestHS2::test_long_polling_success;
> -- 2026-04-23 19:55:37,753 INFO     MainThread: Could not connect to ('::1', 
> 21050, 0, 0)
> Traceback (most recent call last):
>   File 
> "/data/jenkins/workspace/impala-cdw-master-staging-core/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)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to