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

ScriptBasedMapping has infinite loop with invalid jobconf parameter

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.18.1
    • Fix Version/s: 0.20.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: