Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-16013

DecayRpcScheduler decay thread should run as a daemon

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3.0
    • Fix Version/s: 2.10.0, 3.3.0, 3.1.4, 3.2.2
    • Component/s: ipc
    • Labels:
      None

      Description

      DecayRpcScheduler sets up a Timer to schedule a decay of the weights it tracks:

          // Setup delay timer
          Timer timer = new Timer();
          DecayTask task = new DecayTask(this, timer);
          timer.scheduleAtFixedRate(task, decayPeriodMillis, decayPeriodMillis);
      

      However this Timer is not set up as a daemon thread. I have seen this cause my JVM to refuse to exit when running, for example, NNThroughputBenchmark with FairCallQueue enabled.

        Attachments

        1. HADOOP-16013.000.patch
          0.8 kB
          Erik Krogen

          Activity

            People

            • Assignee:
              xkrogen Erik Krogen
              Reporter:
              xkrogen Erik Krogen
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: