File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -768,8 +768,8 @@ impl Catalog for RestCatalog {
768
768
}
769
769
StatusCode :: CONFLICT => {
770
770
return Err ( Error :: new (
771
- ErrorKind :: Unexpected ,
772
- "CommitFailedException , one or more requirements failed. The client may retry." ,
771
+ ErrorKind :: CatalogCommitConflicts ,
772
+ "CatalogCommitConflicts , one or more requirements failed. The client may retry." ,
773
773
)
774
774
. with_retryable ( true ) ) ;
775
775
}
Original file line number Diff line number Diff line change @@ -60,6 +60,9 @@ pub enum ErrorKind {
60
60
///
61
61
/// This error is returned when given iceberg feature is not supported.
62
62
FeatureUnsupported ,
63
+
64
+ /// Catalog commit failed due to outdated metadata
65
+ CatalogCommitConflicts ,
63
66
}
64
67
65
68
impl ErrorKind {
@@ -80,6 +83,7 @@ impl From<ErrorKind> for &'static str {
80
83
ErrorKind :: NamespaceAlreadyExists => "NamespaceAlreadyExists" ,
81
84
ErrorKind :: NamespaceNotFound => "NamespaceNotFound" ,
82
85
ErrorKind :: PreconditionFailed => "PreconditionFailed" ,
86
+ ErrorKind :: CatalogCommitConflicts => "CatalogCommitConflicts" ,
83
87
}
84
88
}
85
89
}
You can’t perform that action at this time.
0 commit comments