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

ShuffleRunner: the wake loop needs to check for shutdown

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

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.9.2, 0.10.0
    • None
    • None

    Description

      In the ShuffleRunner threads, there's a loop which does not terminate if the task threads get killed.

                while ((runningFetchers.size() >= numFetchers || pendingHosts.isEmpty())
                    && numCompletedInputs.get() < numInputs) {
                  inputContext.notifyProgress();
                  boolean ret = wakeLoop.await(1000, TimeUnit.MILLISECONDS);
                }
      

      The wakeLoop signal does not exit this out of the loop and is missing a break for shut-down.

      Attachments

        Activity

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

          People

            gopalv Gopal Vijayaraghavan
            gopalv Gopal Vijayaraghavan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment