Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-8075

Lack of synchronization calling clone() in Configuration ctor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • None
    • None
    • None
    • None

    Description

      In flink-filesystems/flink-s3-fs-presto/src/main/java/org/apache/hadoop/conf/Configuration.java , at line 703:

        public Configuration(Configuration other) {
          this.resources = (ArrayList<Resource>) other.resources.clone();
          synchronized(other) {
            if (other.properties != null) {
              this.properties = (Properties)other.properties.clone();
            }
      

      The first clone() call is without synchronization and without null check.

      Attachments

        Activity

          People

            Unassigned Unassigned
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: