Skip to content

Commit

Permalink
fix checkstyle error and try test again
Browse files Browse the repository at this point in the history
  • Loading branch information
xiezhineng committed Dec 7, 2022
1 parent f640886 commit 36af98c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,14 @@ private void testAll(final String path) throws Exception {
Path testTruncateFilePath = new Path(testTruncateFile);
routerFs.truncate(testTruncateFilePath, 10);
TestFileTruncate.checkBlockRecovery(testTruncateFilePath,
(DistributedFileSystem) routerFs);
(DistributedFileSystem) routerFs);
assertEquals("Truncate file fails", 10,
routerFs.getFileStatus(testTruncateFilePath).getLen());
routerFs.getFileStatus(testTruncateFilePath).getLen());

// Test setReplication
assertTrue(routerFs.setReplication(testTruncateFilePath,(short) 2));
assertTrue(routerFs.setReplication(testTruncateFilePath,(short)2));
assertEquals("SetReplication file fails", 2,
routerFs.getFileStatus(testTruncateFilePath).getReplication());
routerFs.getFileStatus(testTruncateFilePath).getReplication());

// Removing a directory should remove it from every subcluster
routerFs.delete(new Path(path + "/dir2/dir22/dir220"), true);
Expand Down

0 comments on commit 36af98c

Please sign in to comment.