HADOOP-5420 refactored code from taskcontroller.c -> check_tt_root() to configuration.c for reuse. While doing this, this bug got introduced because of which all tasks hang when a cluster is configured with multiple mapred local directories. This happens because of the latest code in check_tt_root() which never advances the mapred_local_dir pointer and gets stuck in an infinite loop.
Description
HADOOP-5420 refactored code from taskcontroller.c -> check_tt_root() to configuration.c for reuse. While doing this, this bug got introduced because of which all tasks hang when a cluster is configured with multiple mapred local directories. This happens because of the latest code in check_tt_root() which never advances the mapred_local_dir pointer and gets stuck in an infinite loop.