aboutsummaryrefslogtreecommitdiffstats
path: root/devtools
diff options
context:
space:
mode:
authorijon <ijon@ydb.tech>2024-01-31 12:03:39 +0300
committerGitHub <noreply@github.com>2024-01-31 12:03:39 +0300
commit8c77bc140c36d19e235725554b9e5ceaf141d304 (patch)
tree5a8541952376c442f4ebb1aaab9228adb87ec8a8 /devtools
parent03d8b00cb82919ad02a176fc7b6d32f678b7698f (diff)
downloadydb-8c77bc140c36d19e235725554b9e5ceaf141d304.tar.gz
schemeshard: fix copy-tables memory hog (#1442)
Export launches copy-tables operation, copy-tables invokes multiple copy table suboperations, each copy-table suboperation grabs and saves aside metadata of table's subdomain (to be able to restore original subdomain state in case IgniteOperation() fails). Straightforward implementation of TMemChanges resulted in that the same and only subdomain being copied multiple times. Which for massive export actions with many-many tables copied is both cpu intensive and, more importantly, requires excessive amount of memory (up to several observed OOM events). This fix changes TMemChanges to store only one subdomain state version per operation. Which is correct and appropriate for copy-tables and all other (sub)operations. KIKIMR-20242
Diffstat (limited to 'devtools')
0 files changed, 0 insertions, 0 deletions