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

Fang-Yu Rao commented on IMPALA-15248:
--------------------------------------

Hi [~joemcdonnell], assigned the ticket to you. Please feel free to re-assign 
the JIRA as you see appropriate. Thanks!


> 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
>            Priority: Major
>              Labels: broken-build
>
> 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)

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

Reply via email to