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-47081][CONNECT][FOLLOW] Unflake Progress Execution #46060

Closed
wants to merge 4 commits into from

Conversation

grundprinzip
Copy link
Contributor

Why are the changes needed?

Running some of the tests repetitively have shown that there is an edge case in which the progress reporting yields undesired behavior. This is in particular the case when the response sender loop has already sent the last expected message in the stream to indicate that the stream is finished, but the response sender would send at least one additional progress message.

This patch removes this race condition and guarantees that the ResultComplete message is the last message on the stream.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Added an additional UT, but existing tests cover the race condition.

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

No

Copy link
Contributor

@hvanhovell hvanhovell left a comment

Choose a reason for hiding this comment

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

LGTM - pending tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants