Fang-Yu Rao created IMPALA-15248:
------------------------------------
Summary: TestStatestore.test_registration_ids_different() could
fail because the Thrift server run by StatestoreSubscriber could not be shut
down in 5 seconds
Key: IMPALA-15248
URL: https://issues.apache.org/jira/browse/IMPALA-15248
Project: IMPALA
Issue Type: Bug
Reporter: Fang-Yu Rao
Assignee: Joe McDonnell
We found in a *core-asan* Jenkins run that
[TestStatestore.test_registration_ids_different()|https://github.com/apache/impala/blob/538ceb4/tests/statestore/test_statestore.py#L378-L385]
could fail because the Thrift server run by StatestoreSubscriber could not be
shut down in 5 seconds in
[wait_until_down()|https://github.com/apache/impala/blob/538ceb4/tests/statestore/test_statestore.py#L137-L148].
Maybe we could increase {{num_tries}} to a higher value to make the test less
flaky.
{code:java}
def wait_until_down(self, num_tries=10):
for i in range(num_tries):
cnxn = TSocket.TSocket('localhost', self.port)
try:
cnxn.open()
except Exception:
LOG.info('Server localhost:{} is down'.format(cnxn.port))
return
finally:
cnxn.close()
time.sleep(0.5)
raise Exception("Server localhost:{} did not stop".format(cnxn.port))
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)