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

Thread leak in Datanode#refreshVolumes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7.1, 3.0.0-alpha1
    • 2.8.0, 3.0.0-alpha1
    • datanode
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: