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

[consensus improve logging when receiving blocks #20825

Merged
merged 2 commits into from
Jan 9, 2025
Merged

[consensus improve logging when receiving blocks #20825

merged 2 commits into from
Jan 9, 2025

Conversation

mwtian
Copy link
Member

@mwtian mwtian commented Jan 9, 2025

Description

Improve logging of blocks received through streaming and synchronizations.

Test plan

CI
PT


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • gRPC:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:

@mwtian mwtian requested review from akichidis and arun-koshy January 9, 2025 00:02
@mwtian mwtian requested a review from a team as a code owner January 9, 2025 00:02
Copy link

vercel bot commented Jan 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 9, 2025 3:27am
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Jan 9, 2025 3:27am
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Jan 9, 2025 3:27am

@@ -1025,7 +1026,6 @@ impl<C: NetworkClient, V: BlockVerifier, D: CoreThreadDispatcher> Synchronizer<C
let peer_hostname = &context.committee.authority(peer_index).hostname;
match response {
Ok(fetched_blocks) => {
info!("Fetched {} blocks from peer {}", fetched_blocks.len(), peer_hostname);
Copy link
Contributor

Choose a reason for hiding this comment

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

why remove this log?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is duplicates the log line Synced {} missing blocks from peer ..., without the block refs.

@mwtian mwtian temporarily deployed to sui-typescript-aws-kms-test-env January 9, 2025 03:17 — with GitHub Actions Inactive
@mwtian mwtian enabled auto-merge (squash) January 9, 2025 03:18
@mwtian mwtian changed the title [consensus improve logging on receiving blocks [consensus improve logging when receiving blocks Jan 9, 2025
@mwtian mwtian disabled auto-merge January 9, 2025 03:20
@mwtian mwtian enabled auto-merge (squash) January 9, 2025 03:20
@mwtian mwtian disabled auto-merge January 9, 2025 03:21
@mwtian mwtian enabled auto-merge (squash) January 9, 2025 03:25
@mwtian mwtian temporarily deployed to sui-typescript-aws-kms-test-env January 9, 2025 03:25 — with GitHub Actions Inactive
@mwtian mwtian merged commit 0c3711f into main Jan 9, 2025
51 checks passed
@mwtian mwtian deleted the tmw/logging branch January 9, 2025 03:55
mwtian added a commit that referenced this pull request Jan 9, 2025
## Description 

Improve logging of blocks received through streaming and
synchronizations.

## Test plan 
CI
PT

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] gRPC:
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
mwtian added a commit that referenced this pull request Jan 9, 2025
## Description 

Improve logging of blocks received through streaming and
synchronizations.

## Test plan 
CI
PT

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] gRPC:
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
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.

2 participants