You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Robert Metzger (JIRA)" <ji...@apache.org> on 2019/02/28 14:26:00 UTC

[jira] [Updated] (FLINK-9631) use Files.createDirectories instead of directory.mkdirs

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

Robert Metzger updated FLINK-9631:
----------------------------------
    Component/s:     (was: Java API)
                 Runtime / State Backends

> use Files.createDirectories instead of directory.mkdirs
> -------------------------------------------------------
>
>                 Key: FLINK-9631
>                 URL: https://issues.apache.org/jira/browse/FLINK-9631
>             Project: Flink
>          Issue Type: Improvement
>          Components: Runtime / State Backends
>    Affects Versions: 1.4.2, 1.5.0
>         Environment: flink1.4
> jdk1.8 latest
> linux 2.6
>            Reporter: makeyang
>            Assignee: makeyang
>            Priority: Trivial
>
> job can't be run due to below exception:
> {color:#6a8759}Could not create RocksDB data directory{color}
>  but with this exception, I can't tell exactly why.
> so I suggest Files.createDirectories which throw exception be used rather than File.mkdirs
>  
> I have some more suggestions:
>  # should we use Files.createDirectories to relpace File.mkdirs?
>  # each time task manager throw exception to jobmanager, should IP+nodeId be contained in exception, which means we should define more flink exception which is used to wrap other exceptions such as jdk exceptions?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)