Uploaded image for project: 'Falcon'
  1. Falcon
  2. FALCON-1341 Cluster entity management : Umbrella Jira
  3. FALCON-1342

Do not allow duplicate properties in cluster entities

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.8
    • general
    • None

    Description

      When specifying properties for a cluster, this is currently allowed,

      <properties>
              <property name="test" value="value1"/>
              <property name="test" value="value2"/>
      </properties>
      

      The propeties are stored as an array of org.apache.falcon.entity.v0.cluster.Property, and cluster.getProperty("test") will return either "value1" or "value2" but not both. If falcon does not support multiple values for same property key, parsing such an entity should throw an error.

      Attachments

        1. FALCON-1342.patch
          6 kB
          Balu Vellanki
        2. FALCON-1342-v1.patch
          18 kB
          Balu Vellanki
        3. FALCON-1342-v2.patch
          18 kB
          Balu Vellanki

        Issue Links

          Activity

            People

              bvellanki Balu Vellanki
              bvellanki Balu Vellanki
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: