Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-9775 Client write path perf issues
  3. HBASE-9917

Fix it so Default Connection Pool does not spin up max threads even when not needed

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.98.0, 0.96.1
    • Client
    • None
    • Reviewed

    Description

      Testing, I noticed that if we use the HConnection executor service as opposed to the executor service that is created when you create an HTable without passing in a connection: i.e

      HConnectionManager.createConnection(config).getTable(tableName)

      vs

      HTable(config, tableName)

      ... then we will spin up the max 256 threads and they will just hang out though not being used.

      We are encouraging HConnection#getTable over new HTable so worth fixing.

      Attachments

        1. pool.txt
          2 kB
          Michael Stack
        2. 9917.txt
          2 kB
          Michael Stack

        Activity

          People

            stack Michael Stack
            stack Michael Stack
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: