Sergey Soldatov created HDDS-16407:
--------------------------------------

             Summary: In OM serialize the Ratis reply eagerly so the retry 
cache holds bytes, not the OMResponse tree
                 Key: HDDS-16407
                 URL: https://issues.apache.org/jira/browse/HDDS-16407
             Project: Apache Ozone
          Issue Type: Improvement
          Components: OM
    Affects Versions: 2.2.1
            Reporter: Sergey Soldatov
            Assignee: Sergey Soldatov


OMRatisHelper.convertResponseToMessage returned a lambda Message that captured 
the parsed OMResponse and serialized it on every getContent() call. Ratis keeps 
the reply Message of every applied write in its retry cache, on the leader and 
on every follower, for the retry cache timeout, and the cache has no size 
bound. So under a write burst each OM retained the whole parsed response tree 
(KeyInfo, locations, ACLs) per request for that long, and re-serialized it each 
time the content was read.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to