hudi
hudi copied to clipboard
A bug when RocksDBDAO executes the prefixDelete function to delete the last entry
https://github.com/apache/hudi/blob/8d6d9b98ac7df881e1b67c0dad80606bbe767fda/hudi-common/src/main/java/org/apache/hudi/common/util/collection/RocksDBDAO.java#L397 Whether getRocksDB().delete(lastEntry.getBytes()); should be changed to getRocksDB().delete(managedHandlesMap.get(columnFamilyName), lastEntry.getBytes());
Is this a bug from real production use case or just a code reviewing?
Is this a bug from real production use case or just a code reviewing?
Just a code reviewing
It looks reasonable, can you write some simple UT to demonstrate it?
Of course, I was a bit busy recently, and now I’m looking into how to write unit tests.
Fixed in https://github.com/apache/hudi/pull/11531