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

ScriptBasedMapping has infinite loop with invalid jobconf parameter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.18.1
    • 0.20.0
    • None
    • None
    • Reviewed

    Description

      A few bugs in ScriptBasedTopology:

      1) topology.script.number.args is not validated; if this is <= 0, the runResolveCommand() method will run its outer loop an infinite number of times.

      2) CachedDNSToSwitchMapping assumes that if a List is returned, it has the same cardinality as the number of names. ScriptBasedMapping should return 'null' instead of a mis-sized list on error

      Attachments

        1. HADOOP-4141.patch.3
          5 kB
          Aaron Kimball
        2. scriptMap.patch
          2 kB
          Aaron Kimball
        3. scriptMap.patch.2
          4 kB
          Aaron Kimball
        4. TestScriptBasedMapping.java
          2 kB
          Aaron Kimball

        Activity

          People

            kimballa Aaron Kimball
            kimballa Aaron Kimball
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: