engine: Log the error when check object existence #1225

Merged
fyrchik merged 1 commits from acid-ant/frostfs-node:bugfix/ext-log-any-shard into master 2024-07-04 07:23:07 +00:00
Collaborator

Signed-off-by: Anton Nikiforov an.nikiforov@yadro.com

Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
acid-ant added 1 commit 2024-07-03 14:18:18 +00:00
Vulncheck / Vulncheck (pull_request) Successful in 1m16s Details
Build / Build Components (1.21) (pull_request) Successful in 4m36s Details
DCO action / DCO (pull_request) Failing after 4m25s Details
Build / Build Components (1.22) (pull_request) Successful in 7m58s Details
Pre-commit hooks / Pre-commit (pull_request) Successful in 9m28s Details
Tests and linters / gopls check (pull_request) Successful in 12m45s Details
Tests and linters / Lint (pull_request) Successful in 14m49s Details
Tests and linters / Staticcheck (pull_request) Successful in 14m41s Details
Tests and linters / Tests (1.21) (pull_request) Successful in 20m54s Details
Tests and linters / Tests with -race (pull_request) Successful in 21m7s Details
Tests and linters / Tests (1.22) (pull_request) Successful in 22m10s Details
5730a645ba
[#xx] engine: Log the error when check object existence
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
acid-ant force-pushed bugfix/ext-log-any-shard from 5730a645ba to 257d880098 2024-07-03 14:19:09 +00:00 Compare
acid-ant requested review from storage-core-committers 2024-07-03 14:19:15 +00:00
acid-ant requested review from storage-core-developers 2024-07-03 14:19:39 +00:00
fyrchik reviewed 2024-07-03 18:23:48 +00:00
@ -150,2 +150,4 @@
// expired => do nothing with it
res.status = putToShardExists
} else {
e.log.Warn(logs.EngineCouldNotCheckObjectExistence,

There could be a bunch of logical errors, I think Warn is too much for this error (which can repeat a lot)
What was the problem that you were trying to debug?

There could be a bunch of logical errors, I think `Warn` is too much for this error (which can repeat a lot) What was the problem that you were trying to debug?
Poster
Collaborator

This is only one place where we skip putting an error in the log. For all other situations, we have an entry with level warn.
Looks like it is not necessary to extend an error could not put object to any shard somehow.

This is only one place where we skip putting an error in the log. For all other situations, we have an entry with level `warn`. Looks like it is not necessary to extend an error `could not put object to any shard` somehow.
dstepanov-yadro approved these changes 2024-07-04 07:15:24 +00:00
achuprov approved these changes 2024-07-04 07:17:14 +00:00
fyrchik approved these changes 2024-07-04 07:18:18 +00:00
fyrchik merged commit bbe95dac8b into master 2024-07-04 07:23:05 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#1225
There is no content yet.