You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
leap-util is unable to reconcile overlapping block logs #2174
I used leap-util extract-blocks to create two logs: one from blocks 2 - 20 and the other from blocks 10 to 100. Because the logs overlap, they should be able to be merged, but leap-util seems unable to process them:
bash-5.2$ ls -l output
total 36
-rw-r--r-- 1 1000 1000 728 Jan 31 17:50 blocks-10-100.index
-rw-r--r-- 1 1000 1000 17520 Jan 31 17:50 blocks-10-100.log
-rw-r--r-- 1 1000 1000 152 Jan 31 17:49 blocks-2-20.index
-rw-r--r-- 1 1000 1000 3696 Jan 31 17:49 blocks-2-20.log
bash-5.2$ leap-util block-log --blocks-dir=/var/db/leap/test/output merge-blocks --output-dir=/var/db/leap/test/output-merged
warn 2024-01-31T18:28:05.157 leap-util block_log.cpp:1713 merge_blocklogs ] /var/db/leap/test/output/blocks-10-100.log cannot be merged with previous block log file because of the discontinuity of blocks, skip merging.
bash-5.2$
A discontinuity means that the block intervals do not overlap, but in this case the block intervals do overlap.
Activity
bhazzard commentedon Feb 27, 2024
It sounds like this is a feature request to support merging overlapping block logs. Is that right?
centromere commentedon Feb 29, 2024
Yes, but also the error message is not correct, because an overlap is not a discontinuity.