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

Configuration deprecation logic breaks backwards compatibility

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.23.3, 0.24.0
    • 0.23.3, 2.0.2-alpha
    • conf
    • None
    • Reviewed

    Description

      The deprecated Configuration logic works as follows:

      For a dK deprecated key in favor of nK:

      • on set(dK, V), it stores (nK,V)
      • on get(dK) it does a reverseLookup of dK to nK and looks for get(nK)

      While this works fine for single set/get operations, the iterator() method that returns an iterator of all config key/values, returns only the new keys.

      This breaks applications that did a set(dK, V) and expect, when iterating over the configuration to find (dK, V).

      Attachments

        1. HADOOP-8167.patch
          6 kB
          Alejandro Abdelnur

        Issue Links

          Activity

            People

              tucu00 Alejandro Abdelnur
              tucu00 Alejandro Abdelnur
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: