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

fix: spammy log - not a validator #11647

Merged
merged 1 commit into from
Jun 21, 2024
Merged

Conversation

staffik
Copy link
Contributor

@staffik staffik commented Jun 21, 2024

See #11400 (comment)

It seems non-validator nodes still call process_ready_orphan_witnesses_and_clean_old and logging an error in such case is spammy.

@staffik staffik requested a review from wacban June 21, 2024 13:00
@staffik staffik requested a review from a team as a code owner June 21, 2024 13:00
Copy link
Contributor

@wacban wacban left a comment

Choose a reason for hiding this comment

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

LGTM
It would be good to look into why RPCs receive witnesses. This can be wasteful.

@staffik
Copy link
Contributor Author

staffik commented Jun 21, 2024

Added an issue #11648

Merged via the queue into master with commit 5ef1ac3 Jun 21, 2024
25 checks passed
@staffik staffik deleted the reduntant-error-log-not-a-validator branch June 21, 2024 13:50
Comment on lines -113 to -114
} else {
tracing::error!(target: "client", new_block=?new_block.hash(), "Cannot process ready orphan witnesses - not a validator");
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe a debug log would be OK? A log saying why a witness was discarded could be useful for debugging.

staffik added a commit that referenced this pull request Jun 25, 2024
See #11400 (comment)

It seems non-validator nodes still call
`process_ready_orphan_witnesses_and_clean_old` and logging an error in
such case is spammy.
@staffik staffik added the A-stateless-validation Area: stateless validation label Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-stateless-validation Area: stateless validation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants