kckoh opened a new pull request, #58040:
URL: https://github.com/apache/spark/pull/58040
### What changes were proposed in this pull request?
This PR increases the timeout for waiting for the `QueryTerminatedEvent` in
`ClientStreamingQuerySuite."listener events"` from 60 seconds to 180 seconds.
The test verifies that a Spark Connect streaming query listener receives
start,
progress, and termination events. Since listener event delivery is
asynchronous,
the termination event may take longer to be observed in slower or noisier CI
environments.
This is a minimal test-only change intended to check whether giving the
termination event more time is enough to deflake the test before considering
a
larger change to the listener/test synchronization logic.
### Why are the changes needed?
`ClientStreamingQuerySuite."listener events"` is flaky in CI. The reported
failure
shows that the test timed out while waiting for `listener.terminate` to
become
non-empty. Increasing the timeout gives the asynchronous listener path more
time to deliver the terminal event in
slow or noisy CI environments.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
i ran `
for i in {1..100}; do
echo "===== run $i ====="
./build/sbt "connect-client-jvm/testOnly
org.apache.spark.sql.connect.streaming.ClientStreamingQuerySuite -- -z
\"listener events\"" || break
done
`
and all the tests were successful in my local environment.
<img width="699" height="141" alt="Screenshot 2026-08-17 at 1 53 57 PM"
src="https://github.com/user-attachments/assets/51eb20c7-31fd-4d26-8ace-7e9daf33c090"
/>
### Was this patch authored or co-authored using generative AI tooling?
No.
--
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]