From 190e4349d77e7ae0601ff81a70c7569c72833ee3 Mon Sep 17 00:00:00 2001 From: Nanda kumar Date: Fri, 12 Jul 2019 14:42:29 +0200 Subject: [PATCH] HDDS-1790. Fix checkstyle issues in TestDataScrubber Closes #1082 --- .../hadoop/ozone/dn/scrubber/TestDataScrubber.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/dn/scrubber/TestDataScrubber.java b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/dn/scrubber/TestDataScrubber.java index abed3ebe485..0f35e50a174 100644 --- a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/dn/scrubber/TestDataScrubber.java +++ b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/dn/scrubber/TestDataScrubber.java @@ -154,17 +154,20 @@ public class TestDataScrubber { Assert.assertTrue(cs.containerCount() > 0); // delete the chunks directory. - File chunksDir = new File(c.getContainerData().getContainerPath(), "chunks"); + File chunksDir = new File(c.getContainerData().getContainerPath(), + "chunks"); deleteDirectory(chunksDir); Assert.assertFalse(chunksDir.exists()); - ContainerScrubber sb = new ContainerScrubber(ozoneConfig, oc.getController()); + ContainerScrubber sb = new ContainerScrubber(ozoneConfig, + oc.getController()); sb.scrub(c); // wait for the incremental container report to propagate to SCM Thread.sleep(5000); - ContainerManager cm = cluster.getStorageContainerManager().getContainerManager(); + ContainerManager cm = cluster.getStorageContainerManager() + .getContainerManager(); Set replicas = cm.getContainerReplicas( ContainerID.valueof(c.getContainerData().getContainerID())); Assert.assertEquals(1, replicas.size()); @@ -184,7 +187,8 @@ public class TestDataScrubber { } private boolean verifyRatisReplication(String volumeName, String bucketName, - String keyName, ReplicationType type, ReplicationFactor factor) + String keyName, ReplicationType type, + ReplicationFactor factor) throws IOException { OmKeyArgs keyArgs = new OmKeyArgs.Builder() .setVolumeName(volumeName)