-
Notifications
You must be signed in to change notification settings - Fork 38
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
Fix/TS expiration handling without network #2937
Fix/TS expiration handling without network #2937
Commits on Sep 12, 2024
-
node/meta: store tombstone's expiration in graveyard
It takes too much of network/disk to handle tombstones expiration and removal, so it is better to store it when tombstone is being indexed in metabase. Additional little-endian expiration suffix was added to graveyard values. Metabase version was increased as it is a non-compatible change. Relates #2929. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Configuration menu - View commit details
-
Copy full SHA for 07c5941 - Browse repository at this point
Copy the full SHA 07c5941View commit details -
node/shard: allow tombstones expire naturally
They do not differ from the other objects (e.g. locks do). Initial logic has changed much, graveyard now allows to handle expired tombstones marks (do not confuse it with the lists of regular indexes) independently, while disk can be cleared with the other types of object. Also, add tests for it. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Configuration menu - View commit details
-
Copy full SHA for 8c283c1 - Browse repository at this point
Copy the full SHA 8c283c1View commit details
Commits on Sep 23, 2024
-
node/meta,shard: use tombstone expiration index instead of network
Graveyard now has tombstone expiration marks in epochs, there is no need to use any network requests, just drop records if an epoch is big enough. Closes #2929. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Configuration menu - View commit details
-
Copy full SHA for f8596c7 - Browse repository at this point
Copy the full SHA f8596c7View commit details -
*: drop unused code related to the old tombstones handling
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Configuration menu - View commit details
-
Copy full SHA for ae8c296 - Browse repository at this point
Copy the full SHA ae8c296View commit details -
lens, meta: support both graveyard version
It may or may not index tombstone's expiration in graveyard. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Configuration menu - View commit details
-
Copy full SHA for 595bb1d - Browse repository at this point
Copy the full SHA 595bb1dView commit details -
pilorama: satisfy
intrange
linterSigned-off-by: Pavel Karpy <carpawell@nspcc.ru>
Configuration menu - View commit details
-
Copy full SHA for 064887c - Browse repository at this point
Copy the full SHA 064887cView commit details -
meta: do not require metabase resync for v2 to v3 update
Migration can be done automatically, let admin's life be a better thing. TS expiration is taken as the current epoch + 5. It is not critical if TS will live more. In practice, side effects _may_ be seen only the first 5 hours after an update, and only returned status code _may_ differ. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Configuration menu - View commit details
-
Copy full SHA for 3e8cc99 - Browse repository at this point
Copy the full SHA 3e8cc99View commit details