diff --git a/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/KeyValueContainer.java b/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/KeyValueContainer.java index 20dfd9c925e..47af1107ffc 100644 --- a/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/KeyValueContainer.java +++ b/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/KeyValueContainer.java @@ -677,7 +677,7 @@ public class KeyValueContainer implements Container { KeyValueContainerCheck checker = new KeyValueContainerCheck(containerData.getMetadataPath(), config, - containerId, containerData); + containerId); switch (level) { case FAST_CHECK: diff --git a/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/KeyValueContainerCheck.java b/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/KeyValueContainerCheck.java index 5366c27c77f..b1ab1e1af84 100644 --- a/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/KeyValueContainerCheck.java +++ b/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/KeyValueContainerCheck.java @@ -52,20 +52,18 @@ public class KeyValueContainerCheck { private static final Logger LOG = LoggerFactory.getLogger(Container.class); private long containerID; - private KeyValueContainerData inMemContainerData; //from caller, maybe null private KeyValueContainerData onDiskContainerData; //loaded from fs/disk private Configuration checkConfig; private String metadataPath; public KeyValueContainerCheck(String metadataPath, Configuration conf, - long containerID, KeyValueContainerData containerData) { + long containerID) { Preconditions.checkArgument(metadataPath != null); this.checkConfig = conf; this.containerID = containerID; this.onDiskContainerData = null; - this.inMemContainerData = containerData; this.metadataPath = metadataPath; } diff --git a/hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/container/keyvalue/TestKeyValueContainerCheck.java b/hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/container/keyvalue/TestKeyValueContainerCheck.java index 79abc2fc562..33952148952 100644 --- a/hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/container/keyvalue/TestKeyValueContainerCheck.java +++ b/hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/container/keyvalue/TestKeyValueContainerCheck.java @@ -111,7 +111,7 @@ import static org.junit.Assert.assertTrue; KeyValueContainerCheck kvCheck = new KeyValueContainerCheck(containerData.getMetadataPath(), conf, - containerID, containerData); + containerID); // first run checks on a Open Container error = kvCheck.fastCheck();