Uploaded image for project: 'Apache Tez'
  1. Apache Tez
  2. TEZ-3103

Shuffle can hang when memory to memory merging enabled

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.7.0
    • 0.7.1, 0.8.3
    • None
    • None
    • Reviewed

    Description

      The shuffle process can hang when memory to memory merging is enabled. As the memory-to-memory merge progresses it closes out the input segments which in turn lowers the commitMemory associated with those segments. However when the merge completes it fails to increase the commitMemory accordingly for the resulting merged segment. This effectively "leaks" shuffle memory, and we can end up in a situation where there's insufficient memory to perform any more in-memory shuffles but commitMemory is too low to trigger a merge. All the fetcher threads eventually end up waiting on the merge that will never occur, and the shuffle hangs.

      Attachments

        1. TEZ-3103.001.patch
          4 kB
          Jason Darrell Lowe
        2. TEZ-3103.002.patch
          6 kB
          Jason Darrell Lowe

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jlowe Jason Darrell Lowe
            jlowe Jason Darrell Lowe
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment