-
Notifications
You must be signed in to change notification settings - Fork 544
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
store-gateway: reduce logging for not finding eager loading snapshot (#…
…6135) The existing logging can be noisy when the upgrade happens. This is because the eager loading snapshot file isn't found. This emits a log line for trying to read the file and then a log line for trying to delete it. This can be unnecessarily worrying especially when there are many tenants. This PR removes logging when the file isn't found and doesn't attempt deleting it. It also removes the `tenant` log field since that's redundant with the user logger we're using. ``` ts=2023-09-25T19:57:41.797242382Z caller=reader_pool.go:104 level=warn user=123 msg="loading the list of index-headers from snapshot file failed; not eagerly loading index-headers for tenant" file=/data/tsdb/123/lazy-loaded.json err="open /data/tsdb/1054557/lazy-loaded.json: no such file or directory" tenant=123 ts=2023-09-25T19:57:41.79726468Z caller=reader_pool.go:110 level=warn user=123 msg="removing the lazy-loaded index-header snapshot failed" file=/data/tsdb/123/lazy-loaded.json err="remove /data/tsdb/1054557/lazy-loaded.json: no such file or directory" ``` Signed-off-by: Dimitar Dimitrov <[email protected]>
- Loading branch information
1 parent
3e9168f
commit 6718a33
Showing
2 changed files
with
36 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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