Skip to content
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

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

Open
centromere opened this issue Jan 31, 2024 · 2 comments
Open

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

centromere opened this issue Jan 31, 2024 · 2 comments
Labels
more-info waiting for submitter to reply with more information

Comments

@centromere
Copy link

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.

@bhazzard
Copy link

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

@bhazzard bhazzard added more-info waiting for submitter to reply with more information and removed triage labels Feb 27, 2024
@centromere
Copy link
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
Labels
more-info waiting for submitter to reply with more information
Projects
Status: Todo
Development

No branches or pull requests

3 participants