Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: flaky TestFindPeerQueryMinimal #1020

Merged
merged 1 commit into from
Feb 7, 2025
Merged

fix: flaky TestFindPeerQueryMinimal #1020

merged 1 commit into from
Feb 7, 2025

Conversation

guillaumemichel
Copy link
Contributor

Fixes #791

Using testFindPeerQuery with 2 bootstrappers but only a single bootstrapConns leads to partitioning. Basically each node connects to one of the two bootstrappers at random. Bootstrappers aren't connected to each other. The only bridge between the 2 partitions is guy, which is connected to all bootstrappers.

While not critical, it may require nodes to perform a high number of routing table refreshes to converge to a stable state. The test is sometimes failing because nodes in both partitions may not know each other.

Using a single bootstrapper for the minimal test doesn't seem crazy, and solves the partitions issue.

@guillaumemichel guillaumemichel requested a review from a team as a code owner February 7, 2025 10:53
@guillaumemichel guillaumemichel merged commit 829ea4c into master Feb 7, 2025
7 checks passed
@guillaumemichel guillaumemichel deleted the fix/791 branch February 7, 2025 15:33
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flaky TestFindPeerQueryMinimal test
1 participant