Skip to content

[SPARK-54644][PYTHON][SS][TESTS] Always stop the query before await it#53394

Closed
gaogaotiantian wants to merge 1 commit intoapache:masterfrom
gaogaotiantian:stop-before-await
Closed

[SPARK-54644][PYTHON][SS][TESTS] Always stop the query before await it#53394
gaogaotiantian wants to merge 1 commit intoapache:masterfrom
gaogaotiantian:stop-before-await

Conversation

@gaogaotiantian
Copy link
Contributor

What changes were proposed in this pull request?

We have patterns like

        q.processAllAvailable()
        q.awaitTermination(10)

which will make the test wait for 10 seconds to timeout - it is such a waste and it's causing our daily coverage run to timeout. We should stop() the query before awaitTermination and save these 10 seconds - there are a lot of them.

Why are the changes needed?

It's a waste time and it's causing our CIs to timeout.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Locally it runs much faster (without the unnecessary wait).

Was this patch authored or co-authored using generative AI tooling?

@HyukjinKwon HyukjinKwon changed the title [SPARK-54644][PYTHON][TEST] Always stop the query before await it [SPARK-54644][PYTHON][SS][TESTS] Always stop the query before await it Dec 8, 2025
@HyukjinKwon
Copy link
Member

Merged to master.

@gaogaotiantian gaogaotiantian deleted the stop-before-await branch December 12, 2025 22:42
@gaogaotiantian
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments