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

Fix stream interrupt when no data, Add tests for PartitionStreamControl #1371

Merged
merged 3 commits into from
Nov 10, 2024

Conversation

svroonland
Copy link
Collaborator

@svroonland svroonland commented Nov 10, 2024

The issue became apparent from the tests. It unfortunately means that #1251 did not fix the issue of blocking when partitions are lost and there is no more data in the queue.

* Fix: race should be raceFirst, because interruptionPromise will only ever fail
* Reset queue size on lost
* Abstract requesting data for testing purposes
Copy link
Collaborator

@erikvanoosten erikvanoosten left a comment

Choose a reason for hiding this comment

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

Great changes!!!

@svroonland svroonland changed the title Tests for PartitionStreamControl Tests for PartitionStreamControl + fix issue with interruptionPromise Nov 10, 2024
@svroonland svroonland marked this pull request as ready for review November 10, 2024 11:33
@svroonland svroonland merged commit 727e7d7 into master Nov 10, 2024
14 checks passed
@svroonland svroonland deleted the partition-stream-control-spec branch November 10, 2024 11:56
@erikvanoosten erikvanoosten changed the title Tests for PartitionStreamControl + fix issue with interruptionPromise Fix stream interrupt when no data, Add tests for PartitionStreamControl Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants