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

Fixes #10611 - Flaky StreamResetTest.testClientResetConsumesQueuedData() #10655

Merged
merged 10 commits into from
Oct 4, 2023

Conversation

sbordet
Copy link
Contributor

@sbordet sbordet commented Oct 3, 2023

Fixed test case that was racy.
When the DATA frames arrived at the server before the call to consumeAvailable(), they were read and the client flow control window re-opened. If it happened that the DATA frames arrived at the server after the call to consumeAvailable(), the client flow control window was not re-opened, making the test flaky.

Fixed by avoiding the race in the test.

Also reviewed the places that required re-opening of the flow control window in case the DATA frames are not read.

Fixed test case that was racy.
When the DATA frames arrived at the server before the call to consumeAvailable(), they were read and the client flow control window re-opened.
If it happened that the DATA frames arrived at the server after the call to consumeAvailable(), the client flow control window was not re-opened, making the test flaky.

Fixed by avoiding the race in the test.

Also reviewed the places that required re-opening of the flow control window in case the DATA frames are not read.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
@sbordet sbordet requested review from gregw and lorban October 3, 2023 08:25
@joakime joakime changed the title Fixes #10611 - Flaky StreamResetTes.testClientResetConsumesQueuedData() Fixes #10611 - Flaky StreamResetTest.testClientResetConsumesQueuedData() Oct 3, 2023
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
@gregw
Copy link
Contributor

gregw commented Oct 3, 2023

@sbordet this is failing some tests

lorban and others added 7 commits October 3, 2023 14:26
…client leaks in tests

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
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.

Flaky test org.eclipse.jetty.http2.tests.StreamResetTes#testClientResetConsumesQueuedData
3 participants