Invalid argument exception when trying to seek FilePosition to LONG.MAX_VALUE
Karan Mehta
k.mehta at salesforce.com
Tue Jun 4 17:13:05 UTC 2019
Hello everyone,
Apache bookkeeper project uses Java NIO to read journal files from disk.
Recently a change was made that would seek the file to LONG.MAX_VALUE. When
we tried running this on a test inside a docker container with
openjdk:8-jdk image, it results in IOException. The patch fix PR is here
<https://github.com/apache/bookkeeper/pull/2105>. Furthermore, running it
inside the same container on different hardware throws IOException either
while seeking the file to LONG.MAX_VALUE or when reading the file at that
value as per the link of the interface here
<https://docs.oracle.com/javase/7/docs/api/java/nio/channels/FileChannel.html#position(long)>.
Checkout the comment here
<https://github.com/apache/bookkeeper/pull/2105#issuecomment-497583368>. I
am suspecting this to be a JNI related issue or bug. Let me know what you
all think and if there's any better way to figure this out.
--
Karan Mehta
<http://smart.salesforce.com/sig/k.mehta//us_mb/default/link.html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20190604/75000bae/attachment.html>
More information about the nio-dev
mailing list