dbtsai opened a new pull request, #55221:
URL: https://github.com/apache/spark/pull/55221
⏺ ### What changes were proposed in this pull request?
Add `sc.listenerBus.waitUntilEmpty()` before the `completedStage`
assertion in the push-based shuffle test in `DAGSchedulerSuite`.
### Why are the changes needed?
The test was intermittently failing due to a race condition.
`SparkListenerStageCompleted` events are delivered asynchronously through the
listener bus, so the `completedStage` assertion could execute before the
event was processed, causing a spurious failure. Waiting for the
listener bus to drain before asserting eliminates the race.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Existing test in `DAGSchedulerSuite`. The fix removes a race condition
rather than adding new test logic.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Sonnet 4.6 (Claude Code)
--
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]