mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
In the test for reindex and friend's rethrottling feature we were waiting only for a single reindex sub task to start before rethrottling. This mostly worked because starting tasks is fast. But it didn't *always work and CI found that for us. This fixes the test to wait for all subtasks to start before rethrottling. I reproduced this locally semi-consistently with some fairly creative `Thread.sleep` calls and this test fix fixes the issue even with the sleeps so I'm fairly sure this will work consistently. Closes #21446