-
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
PeerDAS: Improve logging and reduce the number of needed goroutines for reconstruction #14397
Merged
Conversation
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
…ead of position in the slice. And improve logging as well.
… all the columns for a super node.
nalepae
requested review from
saolyn,
potuz and
nisdas
and removed request for
a team
August 29, 2024 11:49
nisdas
reviewed
Aug 29, 2024
fields := logging.DataColumnFields(ds) | ||
sinceSlotStartTime := receivedTime.Sub(startTime) | ||
validationTime := s.cfg.clock.Now().Sub(receivedTime) | ||
fields["intoSlotTime"] = sinceSlotStartTime |
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.
can you revert these 2 back, for all messages we use these specific field names: sinceSlotStartTime
, validationTime
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.
Done in 42f8051.
Co-authored-by: Nishant Das <nishdas93@gmail.com>
nisdas
approved these changes
Aug 29, 2024
nalepae
added a commit
that referenced
this pull request
Oct 7, 2024
…or reconstruction (#14397) * `broadcastAndReceiveDataColumns`: Use real `sidecar.ColumnIndex` instead of position in the slice. And improve logging as well. * `isDataColumnsAvailable`: Improve logging. * `validateDataColumn`: Print `Accepted data column sidecar gossip` really at the end. * Subscriber: Improve logging. * `sendAndSaveDataColumnSidecars`: Use common used function for logging. * `dataColumnSidecarByRootRPCHandler`: Logging - Pring `all` instead of all the columns for a super node. * Verification: Improve logging. * `DataColumnsWithholdCount`: Set as `uint64` instead `int`. * `DataColumnFields`: Improve logging. * Logging: Remove now useless private `columnFields`function. * Avoid useless goroutines blocking for reconstruction. * Update beacon-chain/sync/subscriber.go Co-authored-by: Nishant Das <nishdas93@gmail.com> * Address Nishant's comment. * Improve logging. --------- Co-authored-by: Nishant Das <nishdas93@gmail.com>
nalepae
added a commit
that referenced
this pull request
Oct 7, 2024
…or reconstruction (#14397) * `broadcastAndReceiveDataColumns`: Use real `sidecar.ColumnIndex` instead of position in the slice. And improve logging as well. * `isDataColumnsAvailable`: Improve logging. * `validateDataColumn`: Print `Accepted data column sidecar gossip` really at the end. * Subscriber: Improve logging. * `sendAndSaveDataColumnSidecars`: Use common used function for logging. * `dataColumnSidecarByRootRPCHandler`: Logging - Pring `all` instead of all the columns for a super node. * Verification: Improve logging. * `DataColumnsWithholdCount`: Set as `uint64` instead `int`. * `DataColumnFields`: Improve logging. * Logging: Remove now useless private `columnFields`function. * Avoid useless goroutines blocking for reconstruction. * Update beacon-chain/sync/subscriber.go Co-authored-by: Nishant Das <nishdas93@gmail.com> * Address Nishant's comment. * Improve logging. --------- Co-authored-by: Nishant Das <nishdas93@gmail.com>
nalepae
added a commit
that referenced
this pull request
Oct 7, 2024
…or reconstruction (#14397) * `broadcastAndReceiveDataColumns`: Use real `sidecar.ColumnIndex` instead of position in the slice. And improve logging as well. * `isDataColumnsAvailable`: Improve logging. * `validateDataColumn`: Print `Accepted data column sidecar gossip` really at the end. * Subscriber: Improve logging. * `sendAndSaveDataColumnSidecars`: Use common used function for logging. * `dataColumnSidecarByRootRPCHandler`: Logging - Pring `all` instead of all the columns for a super node. * Verification: Improve logging. * `DataColumnsWithholdCount`: Set as `uint64` instead `int`. * `DataColumnFields`: Improve logging. * Logging: Remove now useless private `columnFields`function. * Avoid useless goroutines blocking for reconstruction. * Update beacon-chain/sync/subscriber.go Co-authored-by: Nishant Das <nishdas93@gmail.com> * Address Nishant's comment. * Improve logging. --------- Co-authored-by: Nishant Das <nishdas93@gmail.com>
nalepae
added a commit
that referenced
this pull request
Oct 7, 2024
…or reconstruction (#14397) * `broadcastAndReceiveDataColumns`: Use real `sidecar.ColumnIndex` instead of position in the slice. And improve logging as well. * `isDataColumnsAvailable`: Improve logging. * `validateDataColumn`: Print `Accepted data column sidecar gossip` really at the end. * Subscriber: Improve logging. * `sendAndSaveDataColumnSidecars`: Use common used function for logging. * `dataColumnSidecarByRootRPCHandler`: Logging - Pring `all` instead of all the columns for a super node. * Verification: Improve logging. * `DataColumnsWithholdCount`: Set as `uint64` instead `int`. * `DataColumnFields`: Improve logging. * Logging: Remove now useless private `columnFields`function. * Avoid useless goroutines blocking for reconstruction. * Update beacon-chain/sync/subscriber.go Co-authored-by: Nishant Das <nishdas93@gmail.com> * Address Nishant's comment. * Improve logging. --------- Co-authored-by: Nishant Das <nishdas93@gmail.com>
nalepae
added a commit
that referenced
this pull request
Oct 8, 2024
…or reconstruction (#14397) * `broadcastAndReceiveDataColumns`: Use real `sidecar.ColumnIndex` instead of position in the slice. And improve logging as well. * `isDataColumnsAvailable`: Improve logging. * `validateDataColumn`: Print `Accepted data column sidecar gossip` really at the end. * Subscriber: Improve logging. * `sendAndSaveDataColumnSidecars`: Use common used function for logging. * `dataColumnSidecarByRootRPCHandler`: Logging - Pring `all` instead of all the columns for a super node. * Verification: Improve logging. * `DataColumnsWithholdCount`: Set as `uint64` instead `int`. * `DataColumnFields`: Improve logging. * Logging: Remove now useless private `columnFields`function. * Avoid useless goroutines blocking for reconstruction. * Update beacon-chain/sync/subscriber.go Co-authored-by: Nishant Das <nishdas93@gmail.com> * Address Nishant's comment. * Improve logging. --------- Co-authored-by: Nishant Das <nishdas93@gmail.com>
nalepae
added a commit
that referenced
this pull request
Oct 23, 2024
…or reconstruction (#14397) * `broadcastAndReceiveDataColumns`: Use real `sidecar.ColumnIndex` instead of position in the slice. And improve logging as well. * `isDataColumnsAvailable`: Improve logging. * `validateDataColumn`: Print `Accepted data column sidecar gossip` really at the end. * Subscriber: Improve logging. * `sendAndSaveDataColumnSidecars`: Use common used function for logging. * `dataColumnSidecarByRootRPCHandler`: Logging - Pring `all` instead of all the columns for a super node. * Verification: Improve logging. * `DataColumnsWithholdCount`: Set as `uint64` instead `int`. * `DataColumnFields`: Improve logging. * Logging: Remove now useless private `columnFields`function. * Avoid useless goroutines blocking for reconstruction. * Update beacon-chain/sync/subscriber.go Co-authored-by: Nishant Das <nishdas93@gmail.com> * Address Nishant's comment. * Improve logging. --------- Co-authored-by: Nishant Das <nishdas93@gmail.com>
nalepae
added a commit
that referenced
this pull request
Oct 23, 2024
…or reconstruction (#14397) * `broadcastAndReceiveDataColumns`: Use real `sidecar.ColumnIndex` instead of position in the slice. And improve logging as well. * `isDataColumnsAvailable`: Improve logging. * `validateDataColumn`: Print `Accepted data column sidecar gossip` really at the end. * Subscriber: Improve logging. * `sendAndSaveDataColumnSidecars`: Use common used function for logging. * `dataColumnSidecarByRootRPCHandler`: Logging - Pring `all` instead of all the columns for a super node. * Verification: Improve logging. * `DataColumnsWithholdCount`: Set as `uint64` instead `int`. * `DataColumnFields`: Improve logging. * Logging: Remove now useless private `columnFields`function. * Avoid useless goroutines blocking for reconstruction. * Update beacon-chain/sync/subscriber.go Co-authored-by: Nishant Das <nishdas93@gmail.com> * Address Nishant's comment. * Improve logging. --------- Co-authored-by: Nishant Das <nishdas93@gmail.com>
nalepae
added a commit
that referenced
this pull request
Oct 24, 2024
…or reconstruction (#14397) * `broadcastAndReceiveDataColumns`: Use real `sidecar.ColumnIndex` instead of position in the slice. And improve logging as well. * `isDataColumnsAvailable`: Improve logging. * `validateDataColumn`: Print `Accepted data column sidecar gossip` really at the end. * Subscriber: Improve logging. * `sendAndSaveDataColumnSidecars`: Use common used function for logging. * `dataColumnSidecarByRootRPCHandler`: Logging - Pring `all` instead of all the columns for a super node. * Verification: Improve logging. * `DataColumnsWithholdCount`: Set as `uint64` instead `int`. * `DataColumnFields`: Improve logging. * Logging: Remove now useless private `columnFields`function. * Avoid useless goroutines blocking for reconstruction. * Update beacon-chain/sync/subscriber.go Co-authored-by: Nishant Das <nishdas93@gmail.com> * Address Nishant's comment. * Improve logging. --------- Co-authored-by: Nishant Das <nishdas93@gmail.com>
nalepae
added a commit
that referenced
this pull request
Nov 20, 2024
…or reconstruction (#14397) * `broadcastAndReceiveDataColumns`: Use real `sidecar.ColumnIndex` instead of position in the slice. And improve logging as well. * `isDataColumnsAvailable`: Improve logging. * `validateDataColumn`: Print `Accepted data column sidecar gossip` really at the end. * Subscriber: Improve logging. * `sendAndSaveDataColumnSidecars`: Use common used function for logging. * `dataColumnSidecarByRootRPCHandler`: Logging - Pring `all` instead of all the columns for a super node. * Verification: Improve logging. * `DataColumnsWithholdCount`: Set as `uint64` instead `int`. * `DataColumnFields`: Improve logging. * Logging: Remove now useless private `columnFields`function. * Avoid useless goroutines blocking for reconstruction. * Update beacon-chain/sync/subscriber.go Co-authored-by: Nishant Das <nishdas93@gmail.com> * Address Nishant's comment. * Improve logging. --------- Co-authored-by: Nishant Das <nishdas93@gmail.com>
nalepae
added a commit
that referenced
this pull request
Nov 22, 2024
…or reconstruction (#14397) * `broadcastAndReceiveDataColumns`: Use real `sidecar.ColumnIndex` instead of position in the slice. And improve logging as well. * `isDataColumnsAvailable`: Improve logging. * `validateDataColumn`: Print `Accepted data column sidecar gossip` really at the end. * Subscriber: Improve logging. * `sendAndSaveDataColumnSidecars`: Use common used function for logging. * `dataColumnSidecarByRootRPCHandler`: Logging - Pring `all` instead of all the columns for a super node. * Verification: Improve logging. * `DataColumnsWithholdCount`: Set as `uint64` instead `int`. * `DataColumnFields`: Improve logging. * Logging: Remove now useless private `columnFields`function. * Avoid useless goroutines blocking for reconstruction. * Update beacon-chain/sync/subscriber.go Co-authored-by: Nishant Das <nishdas93@gmail.com> * Address Nishant's comment. * Improve logging. --------- Co-authored-by: Nishant Das <nishdas93@gmail.com>
nalepae
added a commit
that referenced
this pull request
Nov 22, 2024
…or reconstruction (#14397) * `broadcastAndReceiveDataColumns`: Use real `sidecar.ColumnIndex` instead of position in the slice. And improve logging as well. * `isDataColumnsAvailable`: Improve logging. * `validateDataColumn`: Print `Accepted data column sidecar gossip` really at the end. * Subscriber: Improve logging. * `sendAndSaveDataColumnSidecars`: Use common used function for logging. * `dataColumnSidecarByRootRPCHandler`: Logging - Pring `all` instead of all the columns for a super node. * Verification: Improve logging. * `DataColumnsWithholdCount`: Set as `uint64` instead `int`. * `DataColumnFields`: Improve logging. * Logging: Remove now useless private `columnFields`function. * Avoid useless goroutines blocking for reconstruction. * Update beacon-chain/sync/subscriber.go Co-authored-by: Nishant Das <nishdas93@gmail.com> * Address Nishant's comment. * Improve logging. --------- Co-authored-by: Nishant Das <nishdas93@gmail.com>
nalepae
added a commit
that referenced
this pull request
Nov 25, 2024
…or reconstruction (#14397) * `broadcastAndReceiveDataColumns`: Use real `sidecar.ColumnIndex` instead of position in the slice. And improve logging as well. * `isDataColumnsAvailable`: Improve logging. * `validateDataColumn`: Print `Accepted data column sidecar gossip` really at the end. * Subscriber: Improve logging. * `sendAndSaveDataColumnSidecars`: Use common used function for logging. * `dataColumnSidecarByRootRPCHandler`: Logging - Pring `all` instead of all the columns for a super node. * Verification: Improve logging. * `DataColumnsWithholdCount`: Set as `uint64` instead `int`. * `DataColumnFields`: Improve logging. * Logging: Remove now useless private `columnFields`function. * Avoid useless goroutines blocking for reconstruction. * Update beacon-chain/sync/subscriber.go Co-authored-by: Nishant Das <nishdas93@gmail.com> * Address Nishant's comment. * Improve logging. --------- Co-authored-by: Nishant Das <nishdas93@gmail.com>
nalepae
added a commit
that referenced
this pull request
Nov 25, 2024
…or reconstruction (#14397) * `broadcastAndReceiveDataColumns`: Use real `sidecar.ColumnIndex` instead of position in the slice. And improve logging as well. * `isDataColumnsAvailable`: Improve logging. * `validateDataColumn`: Print `Accepted data column sidecar gossip` really at the end. * Subscriber: Improve logging. * `sendAndSaveDataColumnSidecars`: Use common used function for logging. * `dataColumnSidecarByRootRPCHandler`: Logging - Pring `all` instead of all the columns for a super node. * Verification: Improve logging. * `DataColumnsWithholdCount`: Set as `uint64` instead `int`. * `DataColumnFields`: Improve logging. * Logging: Remove now useless private `columnFields`function. * Avoid useless goroutines blocking for reconstruction. * Update beacon-chain/sync/subscriber.go Co-authored-by: Nishant Das <nishdas93@gmail.com> * Address Nishant's comment. * Improve logging. --------- Co-authored-by: Nishant Das <nishdas93@gmail.com>
nalepae
added a commit
that referenced
this pull request
Nov 27, 2024
…or reconstruction (#14397) * `broadcastAndReceiveDataColumns`: Use real `sidecar.ColumnIndex` instead of position in the slice. And improve logging as well. * `isDataColumnsAvailable`: Improve logging. * `validateDataColumn`: Print `Accepted data column sidecar gossip` really at the end. * Subscriber: Improve logging. * `sendAndSaveDataColumnSidecars`: Use common used function for logging. * `dataColumnSidecarByRootRPCHandler`: Logging - Pring `all` instead of all the columns for a super node. * Verification: Improve logging. * `DataColumnsWithholdCount`: Set as `uint64` instead `int`. * `DataColumnFields`: Improve logging. * Logging: Remove now useless private `columnFields`function. * Avoid useless goroutines blocking for reconstruction. * Update beacon-chain/sync/subscriber.go Co-authored-by: Nishant Das <nishdas93@gmail.com> * Address Nishant's comment. * Improve logging. --------- Co-authored-by: Nishant Das <nishdas93@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Please read commits by commits.
All commits expect the last one are for logging.
The last one reduces the number of goroutines for reconstruction.
New logs: