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

Configuration deprecation logic breaks backwards compatibility

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.23.3, 0.24.0
    • Fix Version/s: 0.23.3, 2.0.2-alpha
    • Component/s: conf
    • Labels:
      None
    • Hadoop Flags:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: