diff options
author | ijon <ijon@ydb.tech> | 2024-01-31 12:03:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-31 12:03:39 +0300 |
commit | 8c77bc140c36d19e235725554b9e5ceaf141d304 (patch) | |
tree | 5a8541952376c442f4ebb1aaab9228adb87ec8a8 /devtools/ya | |
parent | 03d8b00cb82919ad02a176fc7b6d32f678b7698f (diff) | |
download | ydb-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/ya')
0 files changed, 0 insertions, 0 deletions