Skip to content

Commit 7df81a6

Browse files
yihuadanny0405
authored andcommitted
Revert "[HUDI-2856] Bit cask disk map delete modified (#4116)" (#4171)
This reverts commit 257a6a7. (cherry picked from commit 9b254b6)
1 parent df70e32 commit 7df81a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hudi-common/src/main/java/org/apache/hudi/common/util/collection/BitCaskDiskMap.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,12 +281,12 @@ public void close() {
281281
}
282282
}
283283
}
284+
writeOnlyFile.delete();
285+
this.iterators.forEach(ClosableIterator::close);
284286
} catch (Exception e) {
285287
// delete the file for any sort of exception
286-
LOG.error("BitCaskDisMap close error ", e);
287-
} finally {
288-
this.iterators.forEach(ClosableIterator::close);
289288
writeOnlyFile.delete();
289+
} finally {
290290
super.close();
291291
}
292292
}

0 commit comments

Comments
 (0)