[ 
https://issues.apache.org/jira/browse/HADOOP-4141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aaron Kimball updated HADOOP-4141:
----------------------------------

    Attachment: TestScriptBasedMapping.java

Here's a test case for this ('svn diff' doesn't include this new file so it's 
posted separately)

> ScriptBasedMapping has infinite loop with invalid jobconf parameter
> -------------------------------------------------------------------
>
>                 Key: HADOOP-4141
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4141
>             Project: Hadoop Core
>          Issue Type: Bug
>    Affects Versions: 0.18.0
>            Reporter: Aaron Kimball
>            Priority: Minor
>         Attachments: scriptMap.patch, TestScriptBasedMapping.java
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to