-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: MemTracker::GcMemory tries to release memory, then returns true if we still cannot consume requested amount of bytes. There is a bug in logic, that return `false` if we already released enough memory. It could lead to situation when RPC call or response will be rejected due to lack of memory, while actually we could handle it. Fixed to returning `true` in this case. Jira: DB-14673 Test Plan: ./yb_build.sh -n 200 --cxx-test redisserver_redisserver-test --gtest_filter TestRedisService.HugeCommandInline Reviewers: timur Reviewed By: timur Subscribers: ybase Tags: #jenkins-ready Differential Revision: https://phorge.dev.yugabyte.com/D40911
- Loading branch information
Showing
3 changed files
with
7 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters