Skip to content
Snippets Groups Projects
Commit e8e7ed18 authored by Vladimir Davydov's avatar Vladimir Davydov Committed by Roman Tsisyk
Browse files

vinyl: fix gc of incomplete runs left from dropped indexes

If an index is dropped while a dump/compaction task is in progress, the
task will be aborted, but VY_LOG_DROP_RUN record won't be written to the
metadata log so the run will remain incomplete (VY_LOG_PREPARE_RUN) and
pin the dropped index in the log until the server is restarted and all
incomplete runs are purged. This results in occasional failures of the
vinyl/gc test which checks that vylog files are removed after all vinyl
spaces are dropped. There's actually no reason not to log deletion of an
incomplete run that belongs to a dropped index so let's do this to fix
this problem.

Closes #2486
parent 622c4bcf
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment