Skip to content
Merged
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
14 changes: 12 additions & 2 deletions rust/lance-table/src/io/commit/external_manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,18 @@ impl CommitHandler for ExternalManifestCommitHandler {
let (size, e_tag) = if let Some(size) = size {
(size, e_tag)
} else {
let meta = object_store.inner.head(&path).await?;
(meta.size, meta.e_tag)
match object_store.inner.head(&path).await {
Ok(meta) => (meta.size, meta.e_tag),
Err(ObjectStoreError::NotFound { .. }) => {
// there may be other threads that have finished executing finalize_manifest.
let new_location = self
.external_manifest_store
.get_manifest_location(base_path.as_ref(), version)
.await?;
return Ok(new_location);
}
Err(e) => return Err(e.into()),
}
};

let final_location = self
Expand Down
Loading