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

[CPP tests] Wait for mockZTS to start before connecting to it #15924

Merged
merged 2 commits into from
Jun 3, 2022

Conversation

lhotari
Copy link
Member

@lhotari lhotari commented Jun 3, 2022

Fixes #6298

Motivation

There's a long outstanding flaky CPP test AuthPluginTest.testAthenz which causes CPP builds to fail frequently.
There's a race condition in the test. mockZTS might not be started. Error message is
ERROR [140642816536256] ZTSClient:367 | Response failed for url http://localhost:9999/zts/v1/domain/pulsar.test.provider/token. Error Code 7 .

Error Code 7 is CURLE_COULDNT_CONNECT (7) - Failed to connect() to host or proxy. in libcurl error codes.

Modifications

Wait for mockZTS to start before connecting to it.

@lhotari lhotari added type/flaky-tests doc-not-needed Your PR changes do not impact docs labels Jun 3, 2022
@lhotari lhotari added this to the 2.11.0 milestone Jun 3, 2022
@lhotari lhotari self-assigned this Jun 3, 2022
@lhotari
Copy link
Member Author

lhotari commented Jun 3, 2022

@merlimat Thanks for the review and suggestions. I applied the changes. PTAL

@lhotari lhotari requested a review from merlimat June 3, 2022 18:22
@lhotari lhotari merged commit 93c1a4c into apache:master Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-not-needed Your PR changes do not impact docs type/flaky-tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(Flaky-test) AuthPluginTest.testAthenz failure
2 participants