HBase
  1. HBase
  2. HBASE-5491

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

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.92.0
    • Fix Version/s: 0.92.1
    • Component/s: Coprocessors
    • Labels:
      None
    • Environment:

      all

    • Hadoop Flags:
      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.

      1. HBASE-5491.patch
        2 kB
        honghua zhu
      2. HBASE-5491-2.patch
        2 kB
        honghua zhu

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            honghua zhu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development