-
Notifications
You must be signed in to change notification settings - Fork 3.9k
release-25.1: kvserver: improve logs during adminScatter #147503
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
Open
wenyihu6
wants to merge
2
commits into
cockroachdb:release-25.1
Choose a base branch
from
wenyihu6:backport25.1-144793-147359
base: release-25.1
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
release-25.1: kvserver: improve logs during adminScatter #147503
wenyihu6
wants to merge
2
commits into
cockroachdb:release-25.1
from
wenyihu6:backport25.1-144793-147359
Conversation
This file contains hidden or 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
Previously, adminScatter did not log the number of scatter retries or the reason for terminating the retry loop. Additionally, retry errors were only logged at a high verbosity level. This commit improves observability by: (1) logging an error on each retry failure, and (2) logging the reason when the retry loop exits. These logs are not gated behind high verbosity. We plan to evaluate their noise level through testing, but based on support debug zips, this path should not be very hot, and max retries are capped by the replication factor. Part of: cockroachdb#144548 Release note: none
Previously, the logs in adminScatter included the message "failed to scatter", which could be misleading, as these are not always true failures and depend on context. For example, hitting a terminating error during a retry after rebalancing the leaseholder away doesn’t necessarily indicate a failure without further assessment. This patch updates the log message to avoid confusion for users searching in logs. In addition, it also changes the logging call from log.Eventf to log.Infof, since Eventf was a mistake and not included in logs by default. Epic: none Release note: none
Thanks for opening a backport. Please check the backport criteria before merging:
If your backport adds new functionality, please ensure that the following additional criteria are satisfied:
Also, please add a brief release justification to the body of your PR to justify this |
It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR? 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
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.
Backport:
Please see individual PRs for details.
/cc @cockroachdb/release
Release justification: low risk observability improvements