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

[Storage] Pruning - add a test case to verify compaction can reclaim disk space #6603

Open
wants to merge 14 commits into
base: leo/db-ops
Choose a base branch
from

Conversation

zhangchiqing
Copy link
Member

@zhangchiqing zhangchiqing commented Oct 28, 2024

Review this PR first

Working towards #6516

@zhangchiqing zhangchiqing changed the title Leo/db ops dbstore [Storage] Pruning - add a test case to verify compaction can reclaim disk space Oct 28, 2024
@zhangchiqing zhangchiqing changed the base branch from leo/db-ops to master October 28, 2024 23:43
@zhangchiqing zhangchiqing marked this pull request as ready for review October 29, 2024 04:12
@zhangchiqing zhangchiqing changed the base branch from master to leo/db-ops October 30, 2024 16:52
Comment on lines +207 to +208
require.Greater(t, sizeBefore, sizeAfter,
fmt.Sprintf("expected disk usage to be reduced after compaction, before: %d, after: %d", sizeBefore, sizeAfter))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This verifies the disk usage will be reduced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant