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 13:10:00 UTC

[jira] [Updated] (FLINK-5336) Make Path immutable

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

Robert Metzger updated FLINK-5336:
----------------------------------
    Component/s:     (was: Core)
                 API / DataSet

> Make Path immutable
> -------------------
>
>                 Key: FLINK-5336
>                 URL: https://issues.apache.org/jira/browse/FLINK-5336
>             Project: Flink
>          Issue Type: Sub-task
>          Components: API / DataSet
>            Reporter: Stephan Ewen
>            Priority: Major
>             Fix For: 2.0.0
>
>
> The {{Path}} class is currently mutable to support the {{IOReadableWritable}} serialization. Since that serialization is not used any more, I suggest to drop that interface from Path and make the Path's URI final.
> Being immutable, we can store configures paths properly without the chance of them being mutated as side effects.
> Many parts of the code make the assumption that the Path is immutable, being susceptible to subtle errors.



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