You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by st...@apache.org on 2026/01/13 19:38:31 UTC

(hadoop) branch trunk updated: HDFS-17831. [JDK24] Failure of TestCheckpoint under Java 24 (#7961)

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 <st...@apache.org>
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: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org