-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Fix Noisy Logging during Snapshot Delete (#56264) #56329
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
Conversation
We were logging the cleanup of the snap- and meta- blobs for every snapshot delete which is needlessly noisy and confusing to users. We should only log actual stale/unexpected blobs here.
Pinging @elastic/es-distributed (:Distributed/Snapshot/Restore) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment but otherwise LGTM
if (blobsToDelete.isEmpty()) { | ||
return blobsToDelete; | ||
} | ||
try { | ||
logger.info("[{}] Found stale root level blobs {}. Cleaning them up", metadata.name(), blobsToDelete); | ||
if (logger.isInfoEnabled()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be helpful to continue to log all the blobs at TRACE
level; I'd do both if there are unexpected ones as it's interesting to know that they were unexpected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
D'oh just spotted this was a backport and already approved in master
, sorry 😕
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries, I'll do a follow-up for this shortly, I wanted to add some other trace logging as well anyway :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the more 👀 the better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#56336 :)
Jenkins run elasticsearch-ci/bwc |
We were logging the cleanup of the snap- and meta- blobs for every snapshot delete
which is needlessly noisy and confusing to users. We should only log actual stale/unexpected
blobs here.