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

ShuffleRunner: the wake loop needs to check for shutdown

    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

        1. TEZ-3980.1.patch
          0.8 kB
          Gopal Vijayaraghavan

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: