Skip to content

Commit 4f6801f

Browse files
committed
Handle ConflictOccurredException exception
1 parent aa226c4 commit 4f6801f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/com/scalar/db/storage/objectstorage/MutateStatementHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ private void writePartition(ObjectStoragePartitionSnapshot snapshot) throws Exec
7878
wrapper.insert(snapshot.getObjectKey(), snapshot.getPartition().serialize());
7979
}
8080
}
81-
} catch (PreconditionFailedException e) {
81+
} catch (PreconditionFailedException | ConflictOccurredException e) {
8282
throw new RetriableExecutionException(
8383
CoreError.OBJECT_STORAGE_CONFLICT_OCCURRED_IN_MUTATION.buildMessage(e.getMessage()), e);
8484
} catch (ObjectStorageWrapperException e) {

0 commit comments

Comments
 (0)