Skip to content

Commit 30ab7c8

Browse files
committed
Add assertions for rename within the snapshot directory.
1 parent 70e3977 commit 30ab7c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/snapshot/TestRenameWithSnapshots.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ public void testRenameFileNotInSnapshot() throws Exception {
197197
assertTrue(existsInDiffReport(entries, DiffType.MODIFY, "", null));
198198
assertTrue(existsInDiffReport(entries, DiffType.CREATE, file2.getName(),
199199
null));
200+
restartClusterAndCheckImage(true);
200201
}
201202

202203
/**
@@ -219,6 +220,7 @@ public void testRenameFileInSnapshot() throws Exception {
219220
assertTrue(existsInDiffReport(entries, DiffType.MODIFY, "", null));
220221
assertTrue(existsInDiffReport(entries, DiffType.RENAME, file1.getName(),
221222
file2.getName()));
223+
restartClusterAndCheckImage(true);
222224
}
223225

224226
@Test (timeout=60000)

0 commit comments

Comments
 (0)