-
Notifications
You must be signed in to change notification settings - Fork 1k
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 Initial Sync with 128 data columns subnets #14403
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
50b4f4b
`pingPeers`: Add log with new ENR when modified.
nalepae 7514b7b
`p2p Start`: Use idiomatic go error syntax.
nalepae e2220b5
P2P `start`: Fix error message.
nalepae d95407f
Use not bootnodes at all if the `--chain-config-file` flag is used an…
nalepae 2857344
`validPeersExist`: Centralize logs.
nalepae be836a9
`AddConnectionHandler`: Improve logging.
nalepae 0abfab4
Logging: Add 2 decimals for timestamt in text and JSON logs.
nalepae 959ff24
Improve "no valid peers" logging.
nalepae 2d446a2
Improve "Some columns have no peers responsible for custody" logging.
nalepae edb0fc1
`pubsubSubscriptionRequestLimit`: Increase to be consistent with data…
nalepae c12b239
`sendPingRequest`: Improve logging.
nalepae 7d02a3c
`FindPeersWithSubnet`: Regularly recheck in our current set of peers …
nalepae eee87bb
`subscribeDynamicWithSyncSubnets`: Use exactly the same subscription …
nalepae 0af4c2e
Make deepsource happier.
nalepae bd34800
Nishant's commend: Change peer disconnected log.
nalepae ab0b0e8
NIshant's comment: Change `Too many incoming subscription` log from e…
nalepae 5e2af9f
`FindPeersWithSubnet`: Address Nishant's comment.
nalepae 0b39d26
`batchSize`: Address Nishant's comment.
nalepae bd82d71
`pingPeers` ==> `pingPeersAndLogEnr`.
nalepae 5c0cc4c
Update beacon-chain/sync/subscriber.go
nalepae File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we logging this ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not?
We log the very first ENR here:
But it turns out this ENR is the real one for a very small amount of time.
This ENR is modified shortly after.
Logging the initial ENR without logging modified ones is quite misleading since the user will think that it is it actual ENR, while it is not any more the case.
My opinion is:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you do want to log enr changes,
pingPeers
is the wrong place to do it. It is more accurate to do it inRefreshPersistentSubnets
as that is where the enr is actually modified.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree.
However, currently
pingPeers
in only called byRefreshPersistentSubnets
.And the way
RefreshPersistentSubnets
is coded, we should add this log at three different locations, instead of only one.I can of course do it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can also rename
pingPeers
intopingPeersAndLogEnr
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renaming would be better then
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in bd82d71.