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

Revert "Increase stream-cancellation-delay default to 1000 millis" #597

Merged

Conversation

pjfanning
Copy link
Contributor

@pjfanning pjfanning commented Sep 12, 2024

@pjfanning pjfanning marked this pull request as draft September 12, 2024 12:14
Copy link
Member

@raboof raboof left a comment

Choose a reason for hiding this comment

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

It seems clear this work is in an 'intermediate' state: we would like the get back into a state where the "stream.testkit.all-stages-stopped-timeout = 20 s" is no longer needed, ideally either by improving the implementation (so the cancellation delay is no longer needed) or by improving the tests (so they no longer rely on the cancellation delay?), or otherwise by increasing this value only for specific tests where it is needed.

The question is what the risk of releasing with the "stream-cancellation-delay = 1000 millis" is. If this risk is low, it might be fine to release in this 'intermediate' state. If the risk is high, it would be safer to revert this change and live with the occasional 'SubscriptionWithCancelException$NoMoreElementsNeeded' until we find a more complete solution. Other than being ugly and possibly indicative of a deeper problem, these exceptions are essentially harmless, right?

What worries me most is the "-o 9" that apparently had to be added to H2SpecIntegrationSpec. This is a fairly realistic 'end-to-end' test, and needing to move this from 2 to 9 seconds seems like quite a big jump.

Based on that, though I generally favour 'rolling forward', in this case I think it would probably be wise to indeed do the revert.

@pjfanning pjfanning marked this pull request as ready for review September 21, 2024 17:07
@pjfanning
Copy link
Contributor Author

I'm going to merge this and try to press on with a release. Users can set stream-cancellation-delay in their own configs. We continue to try to come up with a fuller solution for a future release.

@pjfanning pjfanning merged commit c09961c into main Sep 21, 2024
10 checks passed
@pjfanning pjfanning deleted the revert-590-increase-stream-cancellation-delay-default branch September 21, 2024 17:09
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