-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 race condition on reactive client with streaming and SSE responses #16438
Conversation
I used JUnit's |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So hold on, the fix is which part? Is it a double call to complete()
or a double call to close(true)
? Both?
IIRC closeHandler
was called when the server dropped the connection without ending/responding it. I'm not sure we have tests in place for this case (not sure how we could).
The PR fixes 2 different cases - one for streaming chunks and one for SSE (which correspond to the 2 re-enabled tests). In both cases it could happen that the |
Oh, close before handler for items. Damn. Huh. Oh well, I guess we can fix this and wait until any bug related to connection dying appear later. But, then please add a comment in both cases to explain why there's no |
Will do |
PR updated with the request comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks!
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building a236231
|
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building d634926
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But worried about closing.
Yeah, we'll have to see... |
Rebased to get the latest CI fixes. |
Milestone is already set for some of the items: We haven't automatically updated the milestones for these items.
|
Fixes: #16227