-
Notifications
You must be signed in to change notification settings - Fork 728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: TSO proxy will cause pd follower OOM #9004
Comments
The problematic code is here: https://github.com/tikv/pd/blob/master/pkg/utils/tsoutil/tso_dispatcher.go#L72 val, loaded := s.dispatchChs.LoadOrStore(req.getForwardedHost(), make(chan Request, maxMergeRequests)) every foward tso request will make a channel, which need 80KB! |
Introduced by #4085. The affected version starts from v5.3.0. |
thanks for your reply! any repair plan ? Is the 5. x version still under maintenance, Is there a patch version that will continue to be released in the future? |
@guoxiangCN I have raised a PR to fix it. For TiDB EOL, please see https://www.pingcap.com/tidb-release-support-policy/ for detailed information. Once the PR is merged, we may cherry-pick the fix for other release branches, but 5.x may not. |
@rleungx it seems that v5.4 supports unitl 2025-02-15, If the official can release a fixed version, that would be great! |
We prefer to upgrade to a new version for better support. |
close #9004 Signed-off-by: Ryan Leung <[email protected]> Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
Bug Report
What did you do?
Enable tso proxy, the pd follower will OOM in several days.
What did you expect to see?
pd follower works well.
What did you see instead?
the pd follower will OOM in several days (2~5).
What version of PD are you using (
pd-server -V
)?pd 5.4.3, but master also have this trouble.
The text was updated successfully, but these errors were encountered: