[#1225] engine: Log the error when check object existence
All checks were successful
DCO action / DCO (pull_request) Successful in 4m14s
Vulncheck / Vulncheck (pull_request) Successful in 9m53s
Build / Build Components (1.21) (pull_request) Successful in 10m20s
Build / Build Components (1.22) (pull_request) Successful in 10m16s
Tests and linters / gopls check (pull_request) Successful in 11m40s
Tests and linters / Lint (pull_request) Successful in 13m17s
Tests and linters / Staticcheck (pull_request) Successful in 13m27s
Tests and linters / Tests (1.21) (pull_request) Successful in 19m49s
Tests and linters / Tests with -race (pull_request) Successful in 20m9s
Tests and linters / Tests (1.22) (pull_request) Successful in 21m13s
Pre-commit hooks / Pre-commit (pull_request) Successful in 24m8s
All checks were successful
DCO action / DCO (pull_request) Successful in 4m14s
Vulncheck / Vulncheck (pull_request) Successful in 9m53s
Build / Build Components (1.21) (pull_request) Successful in 10m20s
Build / Build Components (1.22) (pull_request) Successful in 10m16s
Tests and linters / gopls check (pull_request) Successful in 11m40s
Tests and linters / Lint (pull_request) Successful in 13m17s
Tests and linters / Staticcheck (pull_request) Successful in 13m27s
Tests and linters / Tests (1.21) (pull_request) Successful in 19m49s
Tests and linters / Tests with -race (pull_request) Successful in 20m9s
Tests and linters / Tests (1.22) (pull_request) Successful in 21m13s
Pre-commit hooks / Pre-commit (pull_request) Successful in 24m8s
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
parent
4bd4667791
commit
257d880098
2 changed files with 6 additions and 0 deletions
|
@ -205,6 +205,7 @@ const (
|
||||||
EngineCouldNotReloadAShard = "could not reload a shard"
|
EngineCouldNotReloadAShard = "could not reload a shard"
|
||||||
EngineAddedNewShard = "added new shard"
|
EngineAddedNewShard = "added new shard"
|
||||||
EngineCouldNotPutObjectToShard = "could not put object to shard"
|
EngineCouldNotPutObjectToShard = "could not put object to shard"
|
||||||
|
EngineCouldNotCheckObjectExistence = "could not check object existence when put object to shard"
|
||||||
EngineErrorDuringSearchingForObjectChildren = "error during searching for object children"
|
EngineErrorDuringSearchingForObjectChildren = "error during searching for object children"
|
||||||
EngineCouldNotInhumeObjectInShard = "could not inhume object in shard"
|
EngineCouldNotInhumeObjectInShard = "could not inhume object in shard"
|
||||||
EngineStartingRemovalOfLocallyredundantCopies = "starting removal of locally-redundant copies"
|
EngineStartingRemovalOfLocallyredundantCopies = "starting removal of locally-redundant copies"
|
||||||
|
|
|
@ -149,6 +149,11 @@ func (e *StorageEngine) putToShard(ctx context.Context, sh hashedShard, pool uti
|
||||||
// object is already found but
|
// object is already found but
|
||||||
// expired => do nothing with it
|
// expired => do nothing with it
|
||||||
res.status = putToShardExists
|
res.status = putToShardExists
|
||||||
|
} else {
|
||||||
|
e.log.Warn(logs.EngineCouldNotCheckObjectExistence,
|
||||||
|
zap.Stringer("shard_id", sh.ID()),
|
||||||
|
zap.String("error", err.Error()),
|
||||||
|
zap.String("trace_id", tracingPkg.GetTraceID(ctx)))
|
||||||
}
|
}
|
||||||
|
|
||||||
return // this is not ErrAlreadyRemoved error so we can go to the next shard
|
return // this is not ErrAlreadyRemoved error so we can go to the next shard
|
||||||
|
|
Loading…
Reference in a new issue