-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[fix] weed fix built an index with the expected size smaller than the actual size #5508
Comments
I remember the problem when the deleted file is counted twice, so we see the file_count field as 4, although in fact there are 2. |
Also tried to do compact manually
|
@chrislusf It looks like, judging by the index, after
|
display additional TTL values is 1M
accordingly, the compactor deletes files in accordance with TTL, and the indexer does not take into account TTL |
fix: skip file size checking for volume with tll #5508
Compaction would not run on TTL volumes. We should add some logic to disable it by default in |
* fix: recreate index include deleted files #5508 * fix: counting the number of files * fix: log
Describe the bug
ls
volume.list
log:
weed fix built an index with the expected size smaller than the actual size, because of this volume switches to read-only mode
after weed fix
volume.list
log
see idx:
see dat
ls cpd
see cpd
see cpx:
System Setup
Expected behavior
weed fix it is necessary to create an index at which compact will not cause errors.
The text was updated successfully, but these errors were encountered: