Avoid retry if object is missing
This commit is contained in:
parent
3f1ee82ec5
commit
b53a70cf65
1 changed files with 1 additions and 0 deletions
|
@ -350,6 +350,7 @@ func (c *Controller) getEmbeddingObject(ctx context.Context, objectKey string, d
|
|||
if s3Err.Code() == s3.ErrCodeNoSuchKey {
|
||||
if c.derivedStorageDataCenter == c.S3Config.GetHotDataCenter() {
|
||||
ctxLogger.Error("Object not found: ", s3Err)
|
||||
return ente.EmbeddingObject{}, stacktrace.Propagate(errors.New("object not found"), "")
|
||||
} else {
|
||||
// If derived and hot bucket are different, try to copy from hot bucket
|
||||
copyEmbeddingObject, err := c.copyEmbeddingObject(ctx, objectKey)
|
||||
|
|
Loading…
Add table
Reference in a new issue