diff --git a/hadoop-hdds/common/pom.xml b/hadoop-hdds/common/pom.xml index ed29d31e669..7e554811e14 100644 --- a/hadoop-hdds/common/pom.xml +++ b/hadoop-hdds/common/pom.xml @@ -75,7 +75,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.rocksdb rocksdbjni - 5.8.0 + 5.14.2 diff --git a/hadoop-hdds/common/src/main/java/org/apache/hadoop/utils/RocksDBStore.java b/hadoop-hdds/common/src/main/java/org/apache/hadoop/utils/RocksDBStore.java index f5f070d242d..b243e3d7e33 100644 --- a/hadoop-hdds/common/src/main/java/org/apache/hadoop/utils/RocksDBStore.java +++ b/hadoop-hdds/common/src/main/java/org/apache/hadoop/utils/RocksDBStore.java @@ -247,7 +247,7 @@ public class RocksDBStore implements MetadataStore { for (BatchOperation.SingleOperation opt : operations) { switch (opt.getOpt()) { case DELETE: - writeBatch.remove(opt.getKey()); + writeBatch.delete(opt.getKey()); break; case PUT: writeBatch.put(opt.getKey(), opt.getValue());