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

Suppress multiple attestation gossiping failures logs #5948

Merged

Conversation

tbenr
Copy link
Contributor

@tbenr tbenr commented Jul 19, 2022

My attempt to improve log bursts.
The idea is to log failures only the first of a burst of attestations with same Slot, IndexCommittee and rootCause.

The synchronized method should not add any overhead in normal operation since it only applies to failure handling.

fixes #5867

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

"Failed to publish attestation(s) for slot {} and committee index {} because the message has already been seen",
lastErroredSlot,
lastErroredCommitteeIndex);
} else if (Throwables.getRootCause(error) instanceof NoPeersForOutboundMessageException) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I could move the synchronized section here, after the debug for the "already seen", to reduce overhead.

Copy link
Contributor

@ajsutton ajsutton left a comment

Choose a reason for hiding this comment

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

LGTM. Couple of suggestions to ensure messages don't slip through that we don't need but you can take or leave those.

@tbenr tbenr enabled auto-merge (squash) July 20, 2022 16:05
@tbenr tbenr merged commit db4a55b into Consensys:master Jul 20, 2022
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.

Excessive "Failed to publish attestation" messages after restart
2 participants