adoroszlai opened a new pull request #2308:
URL: https://github.com/apache/ozone/pull/2308
## What changes were proposed in this pull request?
1. Mini cluster in SCM HA tests waits for two events sequentially:
- SCM leader election
- datanode registration, pipeline creation
The same 2 minutes timeout applies to both of these separately.
This change makes single SCM _with Ratis enabled_ also wait for leader
election, to allow for time spent to start up Ratis. Most timeouts are
observed in tests with such setup (single SCM with Ratis).
2. Increase frequency of pipeline creation attempts for some integration
tests.
3. Fix `BackgroundPipelineCreatorV2#stop()`: the thread was always
considered "not running" due to wrong condition for return value of
`compareAndSet` (returns `true` if update is successful).
4. Guard `oneShotRun` value assignment in `notifyEventTriggered` by
`serviceLock`, similar to other access in `shouldRun`.
https://issues.apache.org/jira/browse/HDDS-5312
## How was this patch tested?
Regular CI:
https://github.com/adoroszlai/hadoop-ozone/actions/runs/914869219
20x repetitions of affected tests:
https://github.com/adoroszlai/hadoop-ozone/runs/2764193856
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]