Fixed checkstyle issues.

This commit is contained in:
sdeka 2019-05-20 08:13:37 +05:30
parent 869a1ab41a
commit 64c39856d2
2 changed files with 5 additions and 4 deletions

View File

@ -225,7 +225,8 @@ public void verifyContainerData(ContainerData containerData)
}
}
private void initializeUsedBytes(KeyValueContainer container) throws IOException {
private void initializeUsedBytes(KeyValueContainer container)
throws IOException {
KeyValueBlockIterator blockIter = new KeyValueBlockIterator(
container.getContainerData().getContainerID(),
new File(container.getContainerData().getContainerPath()));

View File

@ -70,7 +70,7 @@ public class TestOzoneContainer {
private KeyValueContainer keyValueContainer;
private final DatanodeDetails datanodeDetails = createDatanodeDetails();
private HashMap<String, Long> commitSpaceMap; //RootDir -> committed space
private final int NUM_TEST_CONTAINERS = 10;
private final int numTestContainers = 10;
@Before
public void setUp() throws Exception {
@ -94,7 +94,7 @@ public void testBuildContainerMap() throws Exception {
}
// Add containers to disk
for (int i=0; i < NUM_TEST_CONTAINERS; i++) {
for (int i = 0; i < numTestContainers; i++) {
long freeBytes = 0;
long volCommitBytes;
long maxCap = (long) StorageUnit.GB.toBytes(1);
@ -130,7 +130,7 @@ public void testBuildContainerMap() throws Exception {
OzoneContainer(datanodeDetails, conf, context, null);
ContainerSet containerset = ozoneContainer.getContainerSet();
assertEquals(NUM_TEST_CONTAINERS, containerset.containerCount());
assertEquals(numTestContainers, containerset.containerCount());
verifyCommittedSpace(ozoneContainer);
}