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

Don't overwrite localrootpeers lookup results #3641

Merged
merged 1 commit into from Feb 28, 2022

Conversation

karknu
Copy link
Contributor

@karknu karknu commented Feb 28, 2022

Instead of updating the rootPeersGroupsVar every thread monitoring a
domain had their own cached copy of rootPeersGroups which it applied
changes to. This meant that only one thread's results where used,
causing the other localrootpeers to go away. However the missing
localrootpeers would still be known peers, which meant that they could
still be randomly promoted.

Instead of updating the rootPeersGroupsVar every thread monitoring a
domain had their own cached copy of rootPeersGroups which it applied
changes to. This meant that only one thread's results where used,
causing the other localrootpeers to go away. However the missing
localrootpeers would still be known peers, which meant that they could
still be randomly promoted.
@karknu karknu requested a review from coot as a code owner February 28, 2022 09:36
@karknu
Copy link
Contributor Author

karknu commented Feb 28, 2022

Fixes #3524

@karknu karknu requested a review from bolt12 February 28, 2022 09:47
Copy link
Contributor

@bolt12 bolt12 left a comment

Choose a reason for hiding this comment

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

LGTM

@karknu
Copy link
Contributor Author

karknu commented Feb 28, 2022

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Feb 28, 2022

Build succeeded:

@iohk-bors iohk-bors bot merged commit a315943 into master Feb 28, 2022
@iohk-bors iohk-bors bot deleted the karknu/fix_localrootpeers_m branch February 28, 2022 22:04
@bolt12 bolt12 linked an issue Mar 1, 2022 that may be closed by this pull request
iohk-bors bot added a commit that referenced this pull request Mar 16, 2022
3643: RootPeersDNS: garbage collect DNS results && test single source of truth r=bolt12 a=bolt12

This PR extends the existing test suite for RootPeersDNS by making the MockRoots more robust, and adding a test to check if localRootPeersProvider has a single source of truth. It also fixes #3650.

This was motivated by a bug found by `@karknu` and fixed in #3641 .

Co-authored-by: Armando Santos <armandoifsantos@gmail.com>
iohk-bors bot added a commit that referenced this pull request Mar 16, 2022
3643: RootPeersDNS: garbage collect DNS results && test single source of truth r=bolt12 a=bolt12

This PR extends the existing test suite for RootPeersDNS by making the MockRoots more robust, and adding a test to check if localRootPeersProvider has a single source of truth. It also fixes #3650.

This was motivated by a bug found by `@karknu` and fixed in #3641 .

Co-authored-by: Armando Santos <armandoifsantos@gmail.com>
coot pushed a commit that referenced this pull request May 16, 2022
3643: RootPeersDNS: garbage collect DNS results && test single source of truth r=bolt12 a=bolt12

This PR extends the existing test suite for RootPeersDNS by making the MockRoots more robust, and adding a test to check if localRootPeersProvider has a single source of truth. It also fixes #3650.

This was motivated by a bug found by `@karknu` and fixed in #3641 .

Co-authored-by: Armando Santos <armandoifsantos@gmail.com>
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.

Domain Names for LocalRoot peers
3 participants