Skip to content

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

Open

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.

Activity

  1. bhazzard commented on Feb 27, 2024

    @bhazzard

    It sounds like this is a feature request to support merging overlapping block logs. Is that right?

  2. added
    more-infowaiting for submitter to reply with more information
    and removed on Feb 27, 2024
  3. centromere commented on Feb 29, 2024

    @centromere
    Author

    Yes, but also the error message is not correct, because an overlap is not a discontinuity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    more-infowaiting for submitter to reply with more information

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions