Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7240 Scaling HDFS
  3. HDFS-12050

Ozone: StorageHandler: Implementation of "close" for releasing resources during shutdown

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • ozone
    • None

    Description

      When we use DistributedStorageHandler and call newKeyWriter, it will create XceiverClientSpi and add it to clientCache which will create a non-daemon nioEventLoopGroup thread. Since XceiverClientManager#releaseClient doesn't invalidate the client, close is not called on the client object. Cleanup is triggered as part of both eviction as well as releaseClient, but the connection is closed only when both of the conditions are satisfied.

      This StorageHandler#close can be used to close the connections during shutdown.

      Attachments

        1. HDFS-12050-HDFS-7240.001.patch
          4 kB
          Nandakumar
        2. HDFS-12050-HDFS-7240.000.patch
          4 kB
          Nandakumar

        Activity

          People

            nanda Nandakumar
            nanda Nandakumar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: