neils-dev opened a new pull request #2473: URL: https://github.com/apache/ozone/pull/2473
## What changes were proposed in this pull request? `TestSCMInstallSnapshotWithHA#testInstallSnapshot` fails intermittently in CI environment. PR includes small patch to integration test to fix intermittent problem. Problem occurs when transactions are added to leader SCM that are then applied to a follower SCM that is placed into the active state from inactive. Test puts the follower SCM into active state from inactive and expects the follower to install transactions up to leader index when it checks the SCM follower `lastAppliedTermIndex`, however the updates are done with a nonblocking background thread. Checking the SCM index in this manner is prone to error due to the nonblocking install. To fix the intermittent issue, a simple wait and retry construct is used to check the follower index periodically until it updates. A 3 min timeout is used to propagate a fatal error. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-5512 ## How was this patch tested? Tested though` hadoop-ozone/dev-support/checks/integration.sh` script in CI environment with environment variables `$ITERATIONS=60, $MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3` `hadoop-ozone/dev-support/checks/integration.sh -Dtest=TestSCMInstallSnapshotWithHA#testInstallSnapshot` Run cat target/integration/summary.txt Iteration 1 exit code: 0 Iteration 2 exit code: 0 Iteration 3 exit code: 0 Iteration 4 exit code: 0 Iteration 5 exit code: 0 Iteration 6 exit code: 0 Iteration 7 exit code: 0 Iteration 8 exit code: 0 Iteration 9 exit code: 0 ... Iteration 60 exit code: 0 -- 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]
