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

RpcLogDetails' Message can become corrupt before log is consumed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.6.0, 3.0.0-beta-1, 2.5.7
    • None
    • None

    Description

      The RpcLogDetails class represents a slow (or large) log event which will later be consumed by the SlowLogQueueService.

      Right now the RpcLogDetails' param field points to the slow call's Message, and this Message is backed by a CodedInputStream which may be overwritten before the given log is consumed. This overwriting of the Message may result in slow query payloads for which the metadata derived post-consumption is inaccurate.

      To solve this bug I think we need to copy the Message in the RpcLogDetails constructor. I have this bug reproduced in a QA environment and will test out this idea and open a PR shortly if the test results are promising.

      Attachments

        Issue Links

          Activity

            People

              rmdmattingly Ray Mattingly
              rmdmattingly Ray Mattingly
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: