This is an automated email from the ASF dual-hosted git repository.

stevel pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 1e990c35481 HDFS-17831. [JDK24] Failure of TestCheckpoint under Java 
24 (#7961)
1e990c35481 is described below

commit 1e990c35481fb287ed06b66fb0c525718dfcd3c2
Author: Istvan Toth <[email protected]>
AuthorDate: Tue Jan 13 20:38:23 2026 +0100

    HDFS-17831. [JDK24] Failure of TestCheckpoint under Java 24 (#7961)
    
    
    Contributed by Istvan Toth
---
 .../java/org/apache/hadoop/hdfs/server/namenode/TestCheckpoint.java  | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestCheckpoint.java
 
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestCheckpoint.java
index 62d1feb67c2..6a1b744918d 100644
--- 
a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestCheckpoint.java
+++ 
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestCheckpoint.java
@@ -87,6 +87,7 @@
 import org.apache.hadoop.util.ExitUtil;
 import org.apache.hadoop.util.ExitUtil.ExitException;
 import org.apache.hadoop.util.Lists;
+import org.apache.hadoop.util.Shell;
 import org.apache.hadoop.util.StringUtils;
 import org.apache.hadoop.util.concurrent.SubjectInheritingThread;
 import org.slf4j.event.Level;
@@ -654,7 +655,9 @@ public void testNameNodeImageSendFailWrongSize()
     
     Mockito.doReturn(true).when(faultInjector)
       .shouldSendShortFile(filePathContaining("fsimage"));
-    doSendFailTest("is not of the advertised size");
+    String expectedText = Shell.isJavaVersionAtLeast(24) ? "Premature EOF"
+        : "is not of the advertised size";
+    doSendFailTest(expectedText);
   }
 
   /**


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to