Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-9141

Thread leak in Datanode#refreshVolumes

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.1, 3.0.0-alpha1
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: datanode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      In refreshVolumes, we are creating executor service and submitting volume addition tasks to it.
      But we are not shutting down the service after the use. Even though we are not holding instance level service, the initialized thread could be left out.

      ExecutorService service = Executors.newFixedThreadPool(
                  changedVolumes.newLocations.size());
      

      So, simple fix for this would be to shutdown the service after its use.

        Attachments

        1. HDFS-9141.00.patch
          3 kB
          Uma Maheswara Rao G

          Activity

            People

            • Assignee:
              umamaheswararao Uma Maheswara Rao G
              Reporter:
              umamaheswararao Uma Maheswara Rao G
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: