Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions crates/catalog/rest/src/catalog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -768,8 +768,8 @@ impl Catalog for RestCatalog {
}
StatusCode::CONFLICT => {
return Err(Error::new(
ErrorKind::Unexpected,
"CommitFailedException, one or more requirements failed. The client may retry.",
ErrorKind::CatalogCommitConflicts,
"CatalogCommitConflicts, one or more requirements failed. The client may retry.",
)
.with_retryable(true));
}
Expand Down
4 changes: 4 additions & 0 deletions crates/iceberg/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ pub enum ErrorKind {
///
/// This error is returned when given iceberg feature is not supported.
FeatureUnsupported,

/// Catalog commit failed due to outdated metadata
CatalogCommitConflicts,
}

impl ErrorKind {
Expand All @@ -80,6 +83,7 @@ impl From<ErrorKind> for &'static str {
ErrorKind::NamespaceAlreadyExists => "NamespaceAlreadyExists",
ErrorKind::NamespaceNotFound => "NamespaceNotFound",
ErrorKind::PreconditionFailed => "PreconditionFailed",
ErrorKind::CatalogCommitConflicts => "CatalogCommitConflicts",
}
}
}
Expand Down
Loading