Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backport to the 2.0.5 branch] [#3665] Evict log cache at follower af…
…ter operation was appended to log Summary: After 38ef51a, we ended up not calling ResponseFromPeer for followers. At least one of the side effects of this was that the LogCache would be filled up when getting requests, but no longer cleared after writing them to the Log. This quickly lead to memory issues on lower memory machines, as we assign up to 1GB of memory across all LogCache instances. This diff addresses the issue, by cleaning LogCache after the operation is appended to the Log. Test Plan: ybd --gtest_filter QLStressTest.LongRemoteBootstrap Jenkins: auto rebase: no Reviewers: timur, mikhail, bogdan Reviewed By: bogdan Subscribers: ybase Differential Revision: https://phabricator.dev.yugabyte.com/D8312
- Loading branch information