[
https://issues.apache.org/jira/browse/HADOOP-19583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17956144#comment-17956144
]
ASF GitHub Bot commented on HADOOP-19583:
-----------------------------------------
steveloughran opened a new pull request, #7725:
URL: https://github.com/apache/hadoop/pull/7725
Fixes the issues in the readVectored code of raw local and s3a by casting to
the superclass first.
But it is used in many other places.
### How was this patch tested?
waiting for yetus
### 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?
> JDK8: RawLocalFileSystem calls ByteBuffer.flip
> ----------------------------------------------
>
> Key: HADOOP-19583
> URL: https://issues.apache.org/jira/browse/HADOOP-19583
> Project: Hadoop Common
> Issue Type: Bug
> Components: common
> Affects Versions: 3.4.2
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Major
>
> running 3.4.2 rc1 on older JDK 8 runtimes can fail
> {code}
> [INFO] -------------------------------------------------------
> [INFO] Running org.apache.parquet.hadoop.TestParquetReader
> Exception in thread "Thread-8" java.lang.NoSuchMethodError:
> java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;
> at
> org.apache.hadoop.fs.RawLocalFileSystem$AsyncHandler.completed(RawLocalFileSystem.java:428)
> at
> org.apache.hadoop.fs.RawLocalFileSystem$AsyncHandler.completed(RawLocalFileSystem.java:362)
> at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
> at
> sun.nio.ch.SimpleAsynchronousFileChannelImpl$2.run(SimpleAsynchronousFileChannelImpl.java:335)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:750)
> {code}
> this can be fixed trivially, casting to java.io.Buffer first:
> ((Byffer)buff).flip())
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]