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

RPCServer should enforce max request size

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0, 0.98.19, 2.0.0
    • None
    • None
    • Reviewed
    • Hide
      Adds a configuration parameter "hbase.ipc.max.request.size" which defaults to 256MB to protect the server against very large incoming RPC requests. All requests larger than this size will be immediately rejected before allocating any resources (memory allocation, etc).
      Show
      Adds a configuration parameter "hbase.ipc.max.request.size" which defaults to 256MB to protect the server against very large incoming RPC requests. All requests larger than this size will be immediately rejected before allocating any resources (memory allocation, etc).

    Description

      A TODO from HBASE-15177 was that we are not protecting the RPCServer in case an RPC request with a very large size is received. This might cause the server to go OOM because we are allocating the RPC serialization into a BB. Instead we should reject the RPC and close the connection.

      Attachments

        1. hbase-15212_v1.patch
          7 kB
          Enis Soztutar
        2. hbase-15212_v1.patch
          7 kB
          Enis Soztutar
        3. hbase-15212_v2.patch
          6 kB
          Enis Soztutar

        Issue Links

          Activity

            People

              enis Enis Soztutar
              enis Enis Soztutar
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: