adoroszlai opened a new pull request, #4353: URL: https://github.com/apache/ozone/pull/4353
## What changes were proposed in this pull request? `TestHddsDatanodeService` intermittently exits with: ``` [Datanode State Machine Task Thread - 0] ERROR datanode.InitDatanodeState (InitDatanodeState.java:call(84)) - Failed to get SCM addresses: ozone.scm.names need to be a set of valid DNS names or IP addresses. Empty address list found. [Datanode State Machine Daemon Thread] ERROR statemachine.StateContext (StateContext.java:execute(675)) - Critical error occurred in StateMachine, setting shutDownMachine [Datanode State Machine Daemon Thread] ERROR statemachine.DatanodeStateMachine (DatanodeStateMachine.java:startStateMachineThread(334)) - DatanodeStateMachine Shutdown due to an critical error [Datanode State Machine Daemon Thread] INFO util.ExitUtil (ExitUtil.java:terminate(210)) - Exiting with status 1: ExitException ``` Since the test is fast, the background thread usually does not get a chance to trigger the exit. It can be reproduced consistently by adding some sleep after: https://github.com/apache/ozone/blob/888c6dca5b9c6cc3690b063666fa67a39f1b2a69/hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/TestHddsDatanodeService.java#L77 https://issues.apache.org/jira/browse/HDDS-8087 ## How was this patch tested? Passed locally with 1 second sleep, 100 repetitions: ``` Tests run: 100, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 126.957 s - in org.apache.hadoop.ozone.TestHddsDatanodeService ``` Regular CI: https://github.com/adoroszlai/hadoop-ozone/actions/runs/4343223145 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
