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 geoip test #35862

Merged
merged 2 commits into from
Aug 27, 2024
Merged

Fix flaky geoip test #35862

merged 2 commits into from
Aug 27, 2024

Conversation

nezdolik
Copy link
Member

@nezdolik nezdolik commented Aug 27, 2024

On some runs mmdb_reload custom thread is not starting until tests ends which results in segfaults in the test. Addding cond var to await in the test for when mmdb reload thread has populated the callbacks.

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
Fixes #35829
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

Signed-off-by: Kateryna Nezdolii <kateryna.nezdolii@gmail.com>
Signed-off-by: Kateryna Nezdolii <kateryna.nezdolii@gmail.com>
{
absl::MutexLock guard(&mutex_);
absl::ReaderMutexLock guard(&mutex_);
Copy link
Contributor

Choose a reason for hiding this comment

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

why the change to reader/writer locks?

Copy link
Member Author

Choose a reason for hiding this comment

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

We did not need writer lock here, it just reads the value.

@nezdolik nezdolik merged commit a27b080 into envoyproxy:main Aug 27, 2024
47 checks passed
@nezdolik nezdolik deleted the geoip-ci-flake branch August 27, 2024 14:02
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.

geoip provider of maxmind flaky
2 participants