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] [Created] (FLINK-8075) Redundant clone() in Configuration ctor
Date Tue, 14 Nov 2017 22:38:00 GMT
Ted Yu created FLINK-8075:
-----------------------------

             Summary: Redundant 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