Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/storages/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use md5::{Digest, Md5};
use path_absolutize::Absolutize;
use rusoto_s3::CommonPrefix;
use tokio::io::{AsyncReadExt, AsyncSeekExt, AsyncWrite, AsyncWriteExt, BufWriter};
use tracing::{debug, error};
use tracing::{debug, error, warn};
use uuid::Uuid;

use tokio::fs;
Expand Down Expand Up @@ -758,7 +758,13 @@ impl S3Storage for FileSystem {
);

if let Some(ref metadata) = metadata {
trace_try!(self.save_metadata(&bucket, &key, metadata).await);
// The metadata sidecar lives at the fs-root, which may be read-only
// (e.g. an Edge volume is mounted at the bucket, not the root). The
// object itself is already written, so a failed sidecar write should
// not fail the whole PUT
Comment on lines 760 to +764
if let Err(err) = self.save_metadata(&bucket, &key, metadata).await {
warn!(%bucket, %key, %err, "could not persist object metadata; object stored without it");
}
}

let output = PutObjectOutput {
Expand Down
Loading