You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Puspendu Banerjee (JIRA)" <ji...@apache.org> on 2017/03/07 08:33:33 UTC

[jira] [Updated] (NIFI-3562) Nifi on Docker fails due to use of NIO Files.getFileStore on OverlayFS

     [ https://issues.apache.org/jira/browse/NIFI-3562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Puspendu Banerjee updated NIFI-3562:
------------------------------------
    Description: 
Whenever a component, build or test is running having Files.getFileStore, java is throwing exception and the process fails. PFB:
{code:java}
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
{code}

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 :D or
- we can explicitly state it as a known issue in corresponding nifi user manual.

  was:
Whenever a component, build or test is running having Files.getFileStore, java is throwing exception and the process fails. PFB:
{code:java}
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
{code}

An active bug is there on JDK side https://bugs.openjdk.java.net/browse/JDK-8165852.

The same issue is present with  *btrfs* and possibly AuFS.
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 complained :D


> Nifi on Docker fails due to use of NIO Files.getFileStore on OverlayFS
> ----------------------------------------------------------------------
>
>                 Key: NIFI-3562
>                 URL: https://issues.apache.org/jira/browse/NIFI-3562
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework, Extensions, Tools and Build
>    Affects Versions: 1.2.0
>         Environment: CentOS 7 on Docker 17.03.0-ce-win1 (10296) with overlayfs.
> Java build 1.8.0_121-b13, Oracle
>            Reporter: Puspendu Banerjee
>              Labels: docker, overlayfs
>
> Whenever a component, build or test is running having Files.getFileStore, java is throwing exception and the process fails. PFB:
> {code:java}
> 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
> {code}
> 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 :D or
> - we can explicitly state it as a known issue in corresponding nifi user manual.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)