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

Thread leakage in Hadoop RollingAverages metric collection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • 3.0.0-alpha2
    • None
    • metrics

    Description

      The rolling averages metric implementation defines a static ScheduledExecutorService instance which is not shutdown properly. This results in leaking the corresponding thread. This issue was identified while testing Solr/Hadoop 3 integration.

      Here is the relevant portion of the code involved,
      https://github.com/apache/hadoop/blob/c1549352cf1d1b1b45d7b613f993d45649b8efcf/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/RollingAverages.java#L65

      Attachments

        1. HADOOP-14329.001.patch
          3 kB
          Chen Liang

        Activity

          People

            vagarychen Chen Liang
            hgadre Hrishikesh Gadre
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: