Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-2862

Infinite loop in CombineFileInputFormat#getMoreSplits(), with missing blocks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Hi, we met the infinite loop on CombineFileInputFormat#getMoreSplits().

      At first, we lost some blocks by mis-operation . Then, one job tried to use these missing blocks. At that time getMoreSplits() goes into the infinite loop.

      From our investigation, this List could be an empty array.
      > https://github.com/apache/hadoop-mapreduce/blob/trunk/src/java/org/apache/hadoop/mapreduce/lib/input/CombineFileInputFormat.java#L363

      Then 'for' loop just after that line does nothing, and entry is not removed from 'blockToNodes'.

      Finally this line goes into the infinite loop.
      > https://github.com/apache/hadoop-mapreduce/blob/trunk/src/java/org/apache/hadoop/mapreduce/lib/input/CombineFileInputFormat.java#L348

      We're now creating the patch against this problem...

      Attachments

        Activity

          People

            Unassigned Unassigned
            kzk Kazuki Ohta
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: