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

Configuration.set() may be called before all the deprecated keys are registered, causing inconsistent state

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0.5-alpha
    • None
    • conf, documentation
    • None

    Description

      Currently deprecated keys are registered at various times. Some are registered when the Configuration class itself is initialized, but the vast majority are registered when the JobConf class is initialized.

      Therefore, it is entirely possible (and does happen) that Configuration.set() is called for a key before its deprecation mapping is registered, thus leaving the internal state of Configuration in an inconsistent state.

      We actually had this problem occur in real life, causing the set value not to be recognized.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sjlee0 Sangjin Lee
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated: