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 flaky GracefulConnectionClosureHandlingTest#closeIdleBeforeExchange test #1500

Merged
merged 1 commit into from
Apr 19, 2021

Conversation

idelpivnitskiy
Copy link
Member

Motivation:

Client fires SslHandshakeCompletionEvent before the server. Therefore,
client my already return the reserved connection before server's
ConnectionAcceptor is invoked. As the result, test may initiate graceful
closure before onClosing event is registered, leading to the test timeout
exception.

Modifications:

  • Use another CountDownLatch to wait until server invokes
    ConnectionAcceptor before proceeding to the test scenario;

Result:

Fixes #1200.

…nge` test

Motivation:

Client fires `SslHandshakeCompletionEvent` before the server. Therefore,
client my already return the reserved connection before server's
`ConnectionAcceptor` is invoked. As the result, test may initiate graceful
closure before `onClosing` event is registered, leading to the test timeout
exception.

Modifications:

- Use another `CountDownLatch` to wait until server invokes
`ConnectionAcceptor` before proceeding to the test scenario;

Result:

Fixes apple#1200.
@idelpivnitskiy idelpivnitskiy merged commit 8a4f916 into apple:main Apr 19, 2021
@idelpivnitskiy idelpivnitskiy deleted the closeIdleBeforeExchange branch April 19, 2021 03:48
bondolo pushed a commit to bondolo/servicetalk that referenced this pull request Apr 19, 2021
…nge` test (apple#1500)

Motivation:

Client fires `SslHandshakeCompletionEvent` before the server. Therefore,
client my already return the reserved connection before server's
`ConnectionAcceptor` is invoked. As the result, test may initiate graceful
closure before `onClosing` event is registered, leading to the test timeout
exception.

Modifications:

- Use another `CountDownLatch` to wait until server invokes
`ConnectionAcceptor` before proceeding to the test scenario;

Result:

Fixes apple#1200.
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.

GracefulConnectionClosureHandlingTest.closeIdleBeforeExchange test failure
2 participants