[
https://issues.apache.org/jira/browse/RATIS-727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16956953#comment-16956953
]
Tsz-wo Sze commented on RATIS-727:
----------------------------------
> ... The problem is that all these attempts contribute to garbage. Ideally
> for a NotLeaderException the request should not be retried on the same server
> again.
We cannot tell if the attempts are garbage beforehand. The server can become a
leader anytime. However, NotLeaderException handling with no sleep probably
is too aggressive.
> Garbage collection due to same request retries on a follower
> ------------------------------------------------------------
>
> Key: RATIS-727
> URL: https://issues.apache.org/jira/browse/RATIS-727
> Project: Ratis
> Issue Type: Bug
> Components: client
> Reporter: Lokesh Jain
> Priority: Major
>
> In a heap dump it could be seen that a client request retries on the same
> follower multiple times and every time the request is rejected with a
> NotLeaderException. In case of Ozone it is a WriteChunk request which leads
> to garbage collection of 16MB for every request. In the heap dump a client
> request retries multiple times leading to garbage collection of ~100MB.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)