HDDS-1790. Fix checkstyle issues in TestDataScrubber

Closes #1082
This commit is contained in:
Nanda kumar 2019-07-12 14:42:29 +02:00 committed by Márton Elek
parent 7b8177ba0f
commit 190e4349d7
No known key found for this signature in database
GPG Key ID: D51EA8F00EE79B28

View File

@ -154,17 +154,20 @@ public void testOpenContainerIntegrity() throws Exception {
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<ContainerReplica> replicas = cm.getContainerReplicas(
ContainerID.valueof(c.getContainerData().getContainerID()));
Assert.assertEquals(1, replicas.size());
@ -184,7 +187,8 @@ boolean deleteDirectory(File directoryToBeDeleted) {
}
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)