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

        Honghua Zhu created issue -
        Honghua Zhu made changes -
        Field Original Value New Value
        Status Open [ 1 ] Patch Available [ 10002 ]
        Honghua Zhu made changes -
        Attachment HBASE-5491.patch [ 12516576 ]
        Ted Yu made changes -
        Summary Delete the HBaseConfiguration.create for coprocessor.Exec class Remove HBaseConfiguration.create() call from coprocessor.Exec class
        Honghua Zhu made changes -
        Attachment HBASE-5491-2.patch [ 12516630 ]
        stack made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Honghua Zhu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development