diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/ksm/KSMMetadataManager.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/ksm/KSMMetadataManager.java index fe93718292b..1027bd4211a 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/ksm/KSMMetadataManager.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/ksm/KSMMetadataManager.java @@ -124,13 +124,6 @@ public interface KSMMetadataManager { */ byte[] getDeletedKeyName(byte[] keyName); - /** - * Deletes the key from DB. - * - * @param key - key name - */ - void deleteKey(byte[] key) throws IOException; - /** * Given a volume, check if it is empty, * i.e there are no buckets inside it. diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/ksm/KSMMetadataManagerImpl.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/ksm/KSMMetadataManagerImpl.java index b954685efa3..e3b3db204cd 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/ksm/KSMMetadataManagerImpl.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/ksm/KSMMetadataManagerImpl.java @@ -166,16 +166,6 @@ public class KSMMetadataManagerImpl implements KSMMetadataManager { DELETING_KEY_PREFIX + DFSUtil.bytes2String(keyName)); } - /** - * Deletes the key on Metadata DB. - * - * @param key - key name - */ - @Override - public void deleteKey(byte[] key) throws IOException { - store.delete(key); - } - /** * Returns the read lock used on Metadata DB. * @return readLock