Skip to content

leap-util is unable to reconcile overlapping block logs #2174

@centromere

Description

@centromere

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    more-infowaiting for submitter to reply with more information

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions