Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-49927][SS] pyspark.sql.tests.streaming.test_streaming_listener to wait longer #48414

Closed
wants to merge 0 commits into from

Conversation

siying
Copy link
Contributor

@siying siying commented Oct 10, 2024

What changes were proposed in this pull request?

In test pyspark.sql.tests.streaming.test_streaming_listener, instead of waiting for fixed 10 seconds, we wait for progress made.

Why are the changes needed?

In some environment, the test fails with progress_event appears to be None. Likely the wait time is not sufficient.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Run the patch and make sure it still passes

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

No

HyukjinKwon
HyukjinKwon previously approved these changes Oct 11, 2024
@HyukjinKwon
Copy link
Member

Merged to master.

HyukjinKwon added a commit that referenced this pull request Oct 11, 2024
…chId` to `q.lastProgress.progress.batchId`

### What changes were proposed in this pull request?

This PR is a followup of #48414 that fixes `q.lastProgress.batchId` -> `q.lastProgress.progress.batchId` to fix the test.

### Why are the changes needed?

`q.lastProgress` does not have `progress`. We should fix it to fix up the broken build.

### Does this PR introduce _any_ user-facing change?

No, test-only.

### How was this patch tested?

Manually

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

No.

Closes #48419 from HyukjinKwon/SPARK-49927-followup.

Authored-by: Hyukjin Kwon <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
@HyukjinKwon HyukjinKwon reopened this Oct 11, 2024
@HyukjinKwon
Copy link
Member

Build was broken so I reverted it.

@@ -381,7 +381,8 @@ def verify(test_listener):
.start()
)
self.assertTrue(q.isActive)
q.awaitTermination(10)
while progress_event is None or progress_event.batchId == 0:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we not want to add a timeout that could be longer? Maybe 60 seconds or something?

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.

4 participants