sst_importer: set fill cache to false when merge downloaded SST files#19229
sst_importer: set fill cache to false when merge downloaded SST files#19229ti-chi-bot[bot] merged 1 commit intotikv:masterfrom
Conversation
Signed-off-by: Jianjun Liao <jianjun.liao@outlook.com>
There was a problem hiding this comment.
Pull request overview
This PR addresses a memory usage issue during PITR (Point-in-Time Recovery) restore operations by setting fill_cache to false when creating iterators over downloaded SST files. This prevents the RocksDB block cache from being populated with data that is only read once during the merge operation, reducing memory consumption during restore.
- Sets
fill_cacheto false for SST file iterators during merge operations - Reduces memory pressure during PITR restore by avoiding unnecessary cache population
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 3pointer, YuJuncen The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
1 similar comment
|
/retest |
|
In response to a cherrypick label: new pull request created to branch |
|
@Leavrth: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
…tikv#19229) close tikv#19228 set fill cache to false when merge downloaded SST files Signed-off-by: Jianjun Liao <jianjun.liao@outlook.com>
* sst_importer: set fill cache to false when merge downloaded SST files (#19229) close #19228 set fill cache to false when merge downloaded SST files Signed-off-by: Jianjun Liao <jianjun.liao@outlook.com> * sst_importer: ensure cleanup of temporary files on error (#19240) ref #17283, close #19239 sst_importer: enhance failpoint handling and ensure cleanup of temporary files on error - Ensure temporary files are cleaned up when a download fails in sst_importer - Add a new failpoint `download_files_ext_after_download` to inject errors right after batch downloads complete, improving test coverage of cleanup paths Signed-off-by: Juncen Yu <yujuncen@pingcap.com> * Squashed commit of the following: commit 5a14b2b Author: Juncen Yu <yujuncen@pingcap.com> Date: Mon Dec 29 15:11:06 2025 +0800 make clippy happy Signed-off-by: Juncen Yu <yujuncen@pingcap.com> commit ace595e Merge: bd5bff3 147cacc Author: Juncen Yu <yujuncen@pingcap.com> Date: Fri Dec 26 17:51:36 2025 +0800 Merge branch 'master' of https://github.com/tikv/tikv into resolve-compact-conflict commit bd5bff3 Merge: fde14ce 301984c Author: Juncen Yu <yujuncen@pingcap.com> Date: Mon Dec 22 12:10:59 2025 +0800 Merge branch 'master' of https://github.com/tikv/tikv into resolve-compact-conflict Signed-off-by: Juncen Yu <yujuncen@pingcap.com> commit fde14ce Author: Juncen Yu <yujuncen@pingcap.com> Date: Tue Mar 18 15:44:06 2025 +0800 added more checks Signed-off-by: Juncen Yu <yujuncen@pingcap.com> commit d0801cb Author: Juncen Yu <yujuncen@pingcap.com> Date: Tue Mar 18 15:27:14 2025 +0800 added more case about collapsed rollback Signed-off-by: Juncen Yu <yujuncen@pingcap.com> commit 6d2b994 Author: Juncen Yu <yujuncen@pingcap.com> Date: Tue Mar 18 14:52:40 2025 +0800 compact-log-backup: try to resolve conflict encountering during compacting Signed-off-by: Juncen Yu <yujuncen@pingcap.com> Signed-off-by: Juncen Yu <yujuncen@pingcap.com> * *: upgrade cargo-deny version to make it compatible to further developments. Signed-off-by: lucasliang <nkcs_lykx@hotmail.com> --------- Signed-off-by: Jianjun Liao <jianjun.liao@outlook.com> Signed-off-by: Juncen Yu <yujuncen@pingcap.com> Signed-off-by: lucasliang <nkcs_lykx@hotmail.com> Co-authored-by: Jianjun Liao <36503113+Leavrth@users.noreply.github.com> Co-authored-by: lucasliang <nkcs_lykx@hotmail.com>
What is changed and how it works?
Issue Number: Close #19228
What's Changed:
Related changes
pingcap/docs/pingcap/docs-cn:Check List
Tests
Side effects
Release note