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)