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

Remove HBaseConfiguration.create() call from coprocessor.Exec class

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.92.0
    • 0.92.1
    • Coprocessors
    • None
    • all

    • Reviewed

    Description

      Exec class has a field: "private Configuration conf = HBaseConfiguration.create()"

      Client side generates an Exec instance of the class, each initiated Statistics request by ExecRPCInvoker
      Is so HBaseConfiguration.create for each request needs to call

      When the server side deserialize the Exec Called once HBaseConfiguration.create in,
      HBaseConfiguration.create is a time consuming operation.

      "private Configuration conf = HBaseConfiguration.create()";
      This code is only useful for testing code (org.apache.hadoop.hbase.coprocessor.TestCoprocessorEndpoint.testExecDeserialization),
      other places with the Exec class, pass a Configuration come,
      so no need to "conf" field a default value.

      Attachments

        1. HBASE-5491.patch
          2 kB
          Honghua Zhu
        2. HBASE-5491-2.patch
          2 kB
          Honghua Zhu

        Activity

          People

            Unassigned Unassigned
            zhh Honghua Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: