flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLINK-8075) Lack of synchronization calling clone() in Configuration ctor
Date Tue, 14 Nov 2017 22:39:00 GMT

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

Ted Yu updated FLINK-8075:
--------------------------
    Summary: Lack of synchronization calling clone() in Configuration ctor  (was: Redundant
clone() in Configuration ctor)

> Lack of synchronization calling clone() in Configuration ctor
> -------------------------------------------------------------
>
>                 Key: FLINK-8075
>                 URL: https://issues.apache.org/jira/browse/FLINK-8075
>             Project: Flink
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Priority: Minor
>
> In  flink-filesystems/flink-s3-fs-presto/src/main/java/org/apache/hadoop/conf/Configuration.java
, at line 703:
> {code}
>   public Configuration(Configuration other) {
>     this.resources = (ArrayList<Resource>) other.resources.clone();
>     synchronized(other) {
>       if (other.properties != null) {
>         this.properties = (Properties)other.properties.clone();
>       }
> {code}
> The first clone() call is without synchronization and without null check.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message