You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Ray Mattingly (Jira)" <ji...@apache.org> on 2023/10/23 19:21:00 UTC

[jira] [Created] (HBASE-28175) RpcLogDetails' Message can become corrupt before log is consumed

Ray Mattingly created HBASE-28175:
-------------------------------------

             Summary: RpcLogDetails' Message can become corrupt before log is consumed
                 Key: HBASE-28175
                 URL: https://issues.apache.org/jira/browse/HBASE-28175
             Project: HBase
          Issue Type: Bug
            Reporter: Ray Mattingly
            Assignee: Ray Mattingly


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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)