JDK-8171452 : (ch) linux io_util_md: Operation not supported exception after 8168628
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • Submitted: 2016-12-19
  • Updated: 2019-05-13
  • Resolved: 2017-01-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u162Fixed 9 b152Fixed
Related Reports
Relates :  
Description
After JDK-8168628, rmid stopped with "java.io.IOException: Operation not supported" in sun.rmi.log.ReliableLog.

The exception was due to the newly added call to fallocate.

The linux man pages say [1]:

EOPNOTSUPP
The filesystem containing the file referred to by fd does not
support this operation; or the mode is not supported by the
filesystem containing the file referred to by fd.

Seems like the problem only occurs with certain file systems (e.g. NFS mounts).
I guess they still need to be supported and a fallback path is needed.

[1] http://man7.org/linux/man-pages/man2/fallocate.2.html
Comments
Review thread: http://mail.openjdk.java.net/pipermail/nio-dev/2016-December/004031.html http://mail.openjdk.java.net/pipermail/nio-dev/2017-January/004048.html
04-01-2017

Testing results from Robbin Ehn: "I didn't get EOPNOTSUPP when trying different legacy filesystems. So I tested that path with a ld preload. Works as intended and looks good!"
30-12-2016