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

Response size calculated in RPCServer for warning tooLarge responses does NOT count CellScanner payload

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • IPC/RPC
    • None
    • Reviewed

    Description

      After HBASE-13158 where we respond back to RPCs with cells in the payload , the protobuf response will just have the count the cells to read from payload, but there are set of features where we log warn in RPCServer whenever the response is tooLarge, but this size now is not considering the sizes of the cells in the PayloadCellScanner. Code form RPCServer

            long responseSize = result.getSerializedSize();
            // log any RPC responses that are slower than the configured warn
            // response time or larger than configured warning size
            boolean tooSlow = (processingTime > warnResponseTime && warnResponseTime > -1);
            boolean tooLarge = (responseSize > warnResponseSize && warnResponseSize > -1);
            if (tooSlow || tooLarge) {
              // when tagging, we let TooLarge trump TooSmall to keep output simple
              // note that large responses will often also be slow.
              logResponse(new Object[]{param},
                  md.getName(), md.getName() + "(" + param.getClass().getName() + ")",
                  (tooLarge ? "TooLarge" : "TooSlow"),
                  status.getClient(), startTime, processingTime, qTime,
                  responseSize);
            }
      

      Should this feature be not supported any more or should we add a method to CellScanner or a new interface which returns the serialized size (but this might not include the compression codecs which might be used during response ?) Any other Idea this could be fixed ?

      Attachments

        1. HBASE-15437.patch
          5 kB
          deepankar
        2. HBASE-15437-v1.patch
          5 kB
          deepankar
        3. HBASE-15437-v2.patch
          3 kB
          Jerry He
        4. HBASE-15437-v3.patch
          4 kB
          Jerry He
        5. HBASE-15437-v4.patch
          3 kB
          Jerry He
        6. HBASE-15437-v5.patch
          4 kB
          Jerry He
        7. HBASE-15437-v6.patch
          5 kB
          Jerry He

        Issue Links

          Activity

            People

              jinghe Jerry He
              dvdreddy deepankar
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: