[ 
https://issues.apache.org/jira/browse/HDFS-17831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18020280#comment-18020280
 ] 

ASF GitHub Bot commented on HDFS-17831:
---------------------------------------

stoty opened a new pull request, #7961:
URL: https://github.com/apache/hadoop/pull/7961

   ### Description of PR
   
   Java 24 has changed the behaviour for HTTP short reads, and now throws an 
IOException.
   Update the expected Exception for Java 24.
   
   ### How was this patch tested?
   
   Ran test with Java 8 and 24
   
   ### For code changes:
   
   - [X] Does the title or this PR starts with the corresponding JIRA issue id 
(e.g. 'HADOOP-17799. Your PR title ...')?
   - [ ] Object storage: have the integration tests been executed and the 
endpoint declared according to the connector-specific documentation?
   - [ ] If adding new dependencies to the code, are these dependencies 
licensed in a way that is compatible for inclusion under [ASF 
2.0](http://www.apache.org/legal/resolved.html#category-a)?
   - [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`, 
`NOTICE-binary` files?
   
   




> Unexepected exception in 
> org.apache.hadoop.hdfs.server.namenode.TestCheckpoint with Java 24
> -------------------------------------------------------------------------------------------
>
>                 Key: HDFS-17831
>                 URL: https://issues.apache.org/jira/browse/HDFS-17831
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: test
>            Reporter: Istvan Toth
>            Assignee: Istvan Toth
>            Priority: Major
>
> {noformat}
> [ERROR] 
> org.apache.hadoop.hdfs.server.namenode.TestCheckpoint.testNameNodeImageSendFailWrongSize
>  -- Time elapsed: 0.449 s <<< FAILURE!
> java.lang.AssertionError: 
>  Expected to find 'is not of the advertised size' but got unexpected 
> exception: java.io.IOException: Premature EOF
>         at java.base/sun.net.www.MeteredStream.justRead(MeteredStream.java:58)
>         at java.base/sun.net.www.MeteredStream.read(MeteredStream.java:135)
>         at 
> java.base/java.io.FilterInputStream.read(FilterInputStream.java:119)
>         at 
> java.base/sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3309)
>         at 
> java.base/java.security.DigestInputStream.read(DigestInputStream.java:170)
>         at java.base/java.io.FilterInputStream.read(FilterInputStream.java:95)
>         at 
> org.apache.hadoop.hdfs.server.common.Util.receiveFile(Util.java:267)
>         at org.apache.hadoop.hdfs.server.common.Util.doGetUrl(Util.java:190)
> ...
> {noformat}
> Seems to be caused by 
> https://github.com/openjdk/jdk/commit/b6ffb442acb4a222f017868433eff213d9b84ed8



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to