1
0

Revert "[HUDI-2856] Bit cask disk map delete modified (#4116)" (#4171)

This reverts commit 257a6a7456.
This commit is contained in:
Y Ethan Guo
2021-11-30 22:08:44 -08:00
committed by GitHub
parent 24380c2060
commit 9b254b6fc5

View File

@@ -281,12 +281,12 @@ public final class BitCaskDiskMap<T extends Serializable, R extends Serializable
}
}
}
writeOnlyFile.delete();
this.iterators.forEach(ClosableIterator::close);
} catch (Exception e) {
// delete the file for any sort of exception
LOG.error("BitCaskDisMap close error ", e);
} finally {
this.iterators.forEach(ClosableIterator::close);
writeOnlyFile.delete();
} finally {
super.close();
}
}