Skip to content

Commit 39df927

Browse files
committed
HDFS-16689. Fix failed UT: testMismatchedNNIsRejected
1 parent 9cc99df commit 39df927

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/qjournal

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/qjournal/TestNNWithQJM.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,9 @@ public void testMismatchedNNIsRejected() throws Exception {
197197
.manageNameDfsDirs(false).format(false).checkExitOnShutdown(false)
198198
.build();
199199
fail("New NN with different namespace should have been rejected");
200-
} catch (ExitException ee) {
200+
} catch (IOException ioe) {
201201
GenericTestUtils.assertExceptionContains(
202-
"Unable to start log segment 1: too few journals", ee);
203-
assertTrue("Didn't terminate properly ", ExitUtil.terminateCalled());
202+
"recoverUnfinalizedSegments failed for too many journals", ioe);
204203
}
205204
}
206205
}

0 commit comments

Comments
 (0)