Skip to content

Fix empty wal file deletion#12377

Merged
OneSizeFitsQuorum merged 1 commit intoapache:masterfrom
HeimingZ:fix_cannot_delete_empty_file
Apr 19, 2024
Merged

Fix empty wal file deletion#12377
OneSizeFitsQuorum merged 1 commit intoapache:masterfrom
HeimingZ:fix_cannot_delete_empty_file

Conversation

@HeimingZ
Copy link
Contributor

Cannnot delete empty wal file because wal uses empty set to represent active file. To fix this problem, I remove this rule and use null to represent active file.
Besides, I use avg size to calculate effective ratio and exclude active file from the calculation. By doing so, wal deletion can cover more corner cases.

Copy link
Contributor

@OneSizeFitsQuorum OneSizeFitsQuorum left a comment

Choose a reason for hiding this comment

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

LGTM

@OneSizeFitsQuorum OneSizeFitsQuorum merged commit f5a2162 into apache:master Apr 19, 2024
@HeimingZ HeimingZ deleted the fix_cannot_delete_empty_file branch April 19, 2024 13:32
HTHou pushed a commit that referenced this pull request Jun 26, 2024
SzyWilliam pushed a commit to SzyWilliam/iotdb that referenced this pull request Nov 26, 2024
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.

2 participants