Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.2.0
-
None
-
CentOS 7 on Docker 17.03.0-ce-win1 (10296) with overlayfs.
Java build 1.8.0_121-b13, Oracle
Description
Whenever a component, build or test is running having Files.getFileStore, java is throwing exception and the process fails. PFB:
java> import java.nio.file.*; Imported java.nio.file.* java> Path p= FileSystems.getDefault().getPath("/home/puspendu/src/nifi","LICENSE") java.nio.file.Path p = /home/puspendu/src/nifi/LICENSE java> Files.getFileStore(p); java.io.IOException: Mount point not found
An active bug is there on JDK side https://bugs.openjdk.java.net/browse/JDK-8165852.
The same issue is present with btrfs .
For Nifi, either
- we should halt support for Docker container unless that issue is getting fixed or
- need to modify our code and use java.io.File wherever needed or
- we can just ignore assuming none else is using overlayfs2 or
- we can explicitly state it as a known issue and workaround could be using aufs as storage driver for Docker, in corresponding nifi user manual.
Attachments
Issue Links
- relates to
-
NIFI-3579 Nifi Failed to Start: nio Files.getFileStore(Path) is buggy in Windows
- Resolved