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

misc(share/p2p): reduce frequency of discovery retries #3561

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

ramin
Copy link
Contributor

@ramin ramin commented Jul 11, 2024

Fixes #3550 as suggested by guillaumemichel. In adjusting the "1 liner" realized there was some relatively funky stuff in tests where we set/reset a package level var for the interval, so moved both AdvertiserRetryTimeout and DiscoveryRetryTimeout to parameters and allowed customization where NewDiscovery is called. Also adjusted some of the intervals to be faster in tests so they execute within the test context Timeout and thus, hopefully will fix #3115

@ramin ramin added the kind:misc Attached to miscellaneous PRs label Jul 11, 2024
@renaynay renaynay added the v0.15.0 Intended for v0.15.0 release label Jul 16, 2024
share/p2p/discovery/discovery.go Outdated Show resolved Hide resolved
Comment on lines +62 to +68
if p.AdvertiseRetryTimeout <= 0 {
return fmt.Errorf("discovery: advertise retry timeout cannot be zero or negative")
}

if p.DiscoveryRetryTimeout <= 0 {
return fmt.Errorf("discovery: discovery retry timeout cannot be zero or negative")
}
Copy link
Member

Choose a reason for hiding this comment

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

Isn't this config breaking? If so, let's mark PR as such.

… away if accidentally mistaken for a bees nest
@Wondertan
Copy link
Member

There is some wisdom behind the metaphor in ca67fef, but I am not getting it

@ramin
Copy link
Contributor Author

ramin commented Jul 22, 2024

There is some wisdom behind the metaphor in ca67fef, but I am not getting it

@Wondertan ah, I put it back how it was, so no unnecessary change :-)

@renaynay renaynay removed the v0.15.0 Intended for v0.15.0 release label Jul 29, 2024
@renaynay
Copy link
Member

Let's hold off on this til we get conf from v0.14.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:misc Attached to miscellaneous PRs
Projects
None yet
4 participants