File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 8787import org .apache .hadoop .util .ExitUtil ;
8888import org .apache .hadoop .util .ExitUtil .ExitException ;
8989import org .apache .hadoop .util .Lists ;
90+ import org .apache .hadoop .util .Shell ;
9091import org .apache .hadoop .util .StringUtils ;
9192import org .slf4j .event .Level ;
9293import org .junit .jupiter .api .AfterEach ;
@@ -653,7 +654,9 @@ public void testNameNodeImageSendFailWrongSize()
653654
654655 Mockito .doReturn (true ).when (faultInjector )
655656 .shouldSendShortFile (filePathContaining ("fsimage" ));
656- doSendFailTest ("is not of the advertised size" );
657+ String expectedText = Shell .isJavaVersionAtLeast (24 ) ? "Premature EOF" :
658+ "is not of the advertised size" ;
659+ doSendFailTest (expectedText );
657660 }
658661
659662 /**
You can’t perform that action at this time.
0 commit comments