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

[RpcServer] reuse request read buffer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Resolved
    • 1.0.2, 2.0.0
    • 2.0.0
    • IPC/RPC

    Description

      Reusing buffer to read request.It's not necessary to every request free buffer.The idea of optimization is to reduce the times that allocate ByteBuffer.

      Modification
      1. saslReadAndProcess ,processOneRpc, processUnwrappedData, processConnectionHeader accept a ByteBuffer instead of byte[].They can move ByteBuffer.position correctly when we have read the data.

      2. processUnwrappedData no longer use any extra memory.

      3. Maintaining a buffer pool in each Connection.

      Attachments

        1. test-v12-patch
          5 kB
          Zephyr Guo
        2. hits.png
          16 kB
          Michael Stack
        3. HBASE-14490-v9.patch
          12 kB
          Zephyr Guo
        4. HBASE-14490-v8.patch
          12 kB
          Zephyr Guo
        5. HBASE-14490-v7.patch
          10 kB
          Zephyr Guo
        6. HBASE-14490-v6.patch
          10 kB
          Zephyr Guo
        7. HBASE-14490-v5.patch
          10 kB
          Zephyr Guo
        8. HBASE-14490-v4.patch
          11 kB
          Zephyr Guo
        9. HBASE-14490-v3.patch
          9 kB
          Zephyr Guo
        10. HBASE-14490-v2.patch
          3 kB
          Zephyr Guo
        11. HBASE-14490-v12.patch
          14 kB
          Zephyr Guo
        12. HBASE-14490-v11.patch
          14 kB
          Zephyr Guo
        13. HBASE-14490-v10.patch
          12 kB
          Zephyr Guo
        14. HBASE-14490-v1.patch
          2 kB
          Zephyr Guo
        15. gc.png
          31 kB
          Michael Stack
        16. ByteBufferPool.java
          3 kB
          Hiroshi Ikeda
        17. 14490.hack.to.1.2.patch
          21 kB
          Michael Stack

        Issue Links

          Activity

            People

              gzh1992n Zephyr Guo
              gzh1992n Zephyr Guo
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: