Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-25547

Thread pools should release unused resources

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0-alpha-1, 1.7.0, 2.5.0
    • 2.5.0, 3.0.0-alpha-2
    • master, regionserver
    • None

    Description

      On this PR Michael Stack rightly pointed out that the thread pool just spins up threads that remain idle for 99.999% of time. Java's ThreadPoolExecutor lets us tune some configurations like the following for releasing the unused resources

      • corePoolSize
      • keepAliveTimeMs
      • allowCoreThreadTimeOut

      Current code makes it difficult to pass along these configurations to the executor service. Refactor and fix the defaults for low-priority thread pools to release resources quicker.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            bharathv Bharath Vissapragada
            bharathv Bharath Vissapragada
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment