Skip to content

Commit 063c463

Browse files
authored
Core: Rename cleanUpOnCommitFailure to cleanUp and make it protected (apache#15389)
1 parent 17bdb32 commit 063c463

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/main/java/org/apache/iceberg/BaseTransaction.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,11 +376,11 @@ private void commitSimpleTransaction() {
376376
throw e;
377377

378378
} catch (PendingUpdateFailedException e) {
379-
cleanUpOnCommitFailure();
379+
cleanUp();
380380
throw e.wrapped();
381381
} catch (RuntimeException e) {
382382
if (!ops.requireStrictCleanup() || e instanceof CleanableFailure) {
383-
cleanUpOnCommitFailure();
383+
cleanUp();
384384
}
385385

386386
throw e;
@@ -417,7 +417,7 @@ private void commitSimpleTransaction() {
417417
}
418418
}
419419

420-
private void cleanUpOnCommitFailure() {
420+
protected void cleanUp() {
421421
// the commit failed and no files were committed. clean up each update.
422422
cleanAllUpdates();
423423

0 commit comments

Comments
 (0)