Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-16007

Order of property settings is incorrect when includes are processed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Duplicate
    • 3.2.0, 3.1.1, 3.0.4
    • None
    • conf
    • None

    Description

      If a configuration file contains a setting for a property then later includes another file that also sets that property to a different value then the property will be parsed incorrectly. For example, consider the following configuration file:

      <configuration xmlns:xi="http://www.w3.org/2001/XInclude">
           <property>
               <name>myprop</name>
               <value>val1</value>
           </property>
      <xi:include href="/some/other/file.xml"/>
      </configuration>
      

      with the contents of /some/other/file.xml as:

           <property>
             <name>myprop</name>
             <value>val2</value>
           </property>
      

      Parsing this configuration should result in myprop=val2, but it actually results in myprop=val1.

      Attachments

        Issue Links

          Activity

            People

              epayne Eric Payne
              jlowe Jason Darrell Lowe
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: