Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

ErrNoSuchKey should not be reported as an error in the logs

Chris Lub8dc8d12f21f
diff --git a/weed/s3api/s3api_object_handlers.go b/weed/s3api/s3api_object_handlers.go
index 510fdf2995..c4b4a78f71 100644
--- a/weed/s3api/s3api_object_handlers.go
+++ b/weed/s3api/s3api_object_handlers.go
@@ -670,7 +670,7 @@ func (s3a *S3ApiServer) GetObjectHandler(w http.ResponseWriter, r *http.Request)
targetVersionId = "null"
} else {
// No object at regular path either - object doesn't exist
- glog.Errorf("GetObject: object not found at regular path or .versions for %s/%s", bucket, object)
+ glog.V(3).Infof("GetObject: object not found at regular path or .versions for %s/%s", bucket, object)
s3err.WriteErrorResponse(w, r, s3err.ErrNoSuchKey)
return
}
@@ -2152,7 +2152,7 @@ func (s3a *S3ApiServer) HeadObjectHandler(w http.ResponseWriter, r *http.Request
targetVersionId = "null"
} else {
// No object at regular path either - object doesn't exist
- glog.Errorf("HeadObject: object not found at regular path or .versions for %s/%s", bucket, object)
+ glog.V(3).Infof("HeadObject: object not found at regular path or .versions for %s/%s", bucket, object)
s3err.WriteErrorResponse(w, r, s3err.ErrNoSuchKey)
return
}