anton-vinogradov opened a new pull request, #13291: URL: https://github.com/apache/ignite/pull/13291
## Description `testRebalanceProgressUnderLoad()` registered an `EVT_CACHE_REBALANCE_STOPPED` listener via `ignite.events().localListen(...)` **after** `startGrid(4)`. The joining node begins rebalancing during `start()`, so the event could fire before the listener was registered. The event was then missed, the `CountDownLatch` was never counted down, and the unbounded `latch.await()` hung until the 600s test timeout (reproduced in ~7% of runs; a thread dump shows the test runner parked in `latch.await()`). ## Fix Register the listener through node configuration (`IgniteConfiguration.setLocalEventListeners`) so it is active before the node joins and starts rebalancing. Both `events().localListen()` and `setLocalEventListeners` funnel into `GridEventStorageManager.addLocalEventListener → addEventListener → registerListener`, and neither enables the event type — so delivery is identical; the listener is simply active earlier (during node `start()`), eliminating the race. ## Verification - Compiles cleanly. - `testRebalanceProgressUnderLoad` ran green across repeated local runs (~0.5s each), no hang. JIRA: https://issues.apache.org/jira/browse/IGNITE-28830 -- 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]
