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 87
87
import org .apache .hadoop .util .ExitUtil ;
88
88
import org .apache .hadoop .util .ExitUtil .ExitException ;
89
89
import org .apache .hadoop .util .Lists ;
90
+ import org .apache .hadoop .util .Shell ;
90
91
import org .apache .hadoop .util .StringUtils ;
91
92
import org .slf4j .event .Level ;
92
93
import org .junit .jupiter .api .AfterEach ;
@@ -653,7 +654,9 @@ public void testNameNodeImageSendFailWrongSize()
653
654
654
655
Mockito .doReturn (true ).when (faultInjector )
655
656
.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 );
657
660
}
658
661
659
662
/**
You can’t perform that action at this time.
0 commit comments