mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-26 09:58:28 +00:00
The SSLConfigurationReloaderTests rarely failed during some local runs. This turned out to be due to signaling that the reload happened before we actually reloaded. This led to a race condition where we attempted to validate the config was reloaded properly and actually reloading. This change fixes the ordering of operations and uses a CountDownLatch instead of a AtomicInteger and awaitBusy. Original commit: elastic/x-pack-elasticsearch@9615f225d6