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

Ozone : fix XceiverClient slow shutdown

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • Reviewed

    Description

      Currently XceiverClient is the underlying entity of DistributedStorageHandler.newKeyWriter() and DistributedStorageHandler.newKeyReader() for making call to container for read/write. When XceiverClient gets closed, group.shutdownGracefully() gets called, which is an asynchronous call.

      A problem is that this asynchronous call has default quiet period of 2 seconds before it actually shutdown, so if we have a burst of read/write calls, we would end up having threads created faster than they got terminated, reaching system limit at some point.

      Ideally, this needs to be fixed with cached clients instead of creating new thread each time. This JIRA only tries to give a temporary fix for the time being.

      Thanks anu for the offline discussion.

      Attachments

        1. HDFS-10932.001.patch
          1.0 kB
          Chen Liang
        2. HDFS-10932-HDFS-7240.002.patch
          1.0 kB
          Chen Liang
        3. HDFS-10932-HDFS-7240.002.patch
          1.0 kB
          Chen Liang

        Activity

          People

            vagarychen Chen Liang
            vagarychen Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: