RFR: 8272047: java/nio/channels/FileChannel/Transfer2GPlus.java failed with Unexpected transfer size: 2147418112

Naoto Sato naoto at openjdk.java.net
Thu Aug 5 23:04:28 UTC 2021


On Thu, 5 Aug 2021 21:40:43 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> Please consider this fix which resolves a test consistently failing on aarch64 in the CI pipeline.

test/jdk/java/nio/channels/FileChannel/Transfer2GPlus.java line 100:

> 98:                             break;
> 99:                         total += n;
> 100:                     } while (total < LENGTH);

Could it be possible where the `total` is larger than `LINUX_MAX_TRANSFER_SIZE` here after the loop? If so, the test below only checks whether the `dstCh` is smaller than `LENGTH` and proceeds without the error reported.

-------------

PR: https://git.openjdk.java.net/jdk/pull/5025


More information about the nio-dev mailing list