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

DecayRpcScheduler decay thread should run as a daemon

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 2.10.0, 3.3.0, 3.1.4, 3.2.2
    • ipc
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: