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

kvserver: downgrade spammy "skipping snapshot" message #80166

Merged
merged 1 commit into from
Apr 25, 2022

Conversation

tbg
Copy link
Member

@tbg tbg commented Apr 19, 2022

This message wasn't useful, as it is always logged when a LEARNER upreplication
is occurring. Nothing is lost by moving it behind V(2).

Release note: None

@tbg tbg requested a review from a team as a code owner April 19, 2022 14:54
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@aayushshah15 aayushshah15 left a comment

Choose a reason for hiding this comment

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

🤦 I now realize that I used a local log limiter here, so it wasn't actually helping with the noise at all. What do you think about fixing the log rate-limiting instead?
I think the concern before was that downgrading this log message is almost like disabling it since it won't be included in any traces either.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained

@tbg
Copy link
Member Author

tbg commented Apr 20, 2022

What do you think about fixing the log rate-limiting instead?

I think logging this message at any rate is completely pointless, since it is expected to occur 100% of the time when replication changes are ongoing.

Could you give more details on why you think we should salvage this message at all?

Copy link
Contributor

@aayushshah15 aayushshah15 left a comment

Choose a reason for hiding this comment

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

Could you give more details on why you think we should salvage this message at all?

Yeah, that's fair. I can't think of any reason to.

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

@tbg
Copy link
Member Author

tbg commented Apr 25, 2022

bors r=aayushshah15

@craig
Copy link
Contributor

craig bot commented Apr 25, 2022

Build failed:

This message wasn't useful, as it is always logged when a LEARNER upreplication
is occurring. Nothing is lost by moving it behind `V(2)`.

Release note: None
@tbg tbg force-pushed the no-log-skip-snap branch from 31b8f9a to c15709c Compare April 25, 2022 08:21
@tbg
Copy link
Member Author

tbg commented Apr 25, 2022

Oops, that was on me. Some tests actually assert on the trace, but the V(2) was blocking it from getting there. Using VEventf now.

bors r=aayushshah15

@craig
Copy link
Contributor

craig bot commented Apr 25, 2022

Build succeeded:

@craig craig bot merged commit d2eafdf into cockroachdb:master Apr 25, 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.

3 participants