-
-
Notifications
You must be signed in to change notification settings - Fork 94
Age rotation for old data #1103
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
Conversation
aee289c
to
283f03e
Compare
c6c732c
to
2b83441
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great PR! I only have smaller things to discuss.
Since we're doing out-of-band testing with this PR, I have only looked at the code from a mechanical point of view.
f7866f3
to
7a9bbb1
Compare
7a9bbb1
to
d7b562c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments, mostly on log message wording.
This needs two changelog entries: A change
for the archive options, and an experimental feature
for the disk monitor. Please reflect all new and changed options in the example configuration.
The integration test should be disabled on macOS as discussed via Slack. .DS_Store
files don't play well with how we're currently calculating the directory size and how the test is currently implemented.
Add a method to compute recursive directory size. Also make some members of `vast::directory` const in order to support usage of the class in a const context.
e1ea50b
to
c68d6df
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good from a 30k-foot view now. Just some cosmetic changes.
I didn't check the application logic or test the commit, it would be great if somebody else from @tenzir/backend can take care of that.
I've verified this to work locally on macOS. It's fine for an experimental feature, I think. |
c68d6df
to
2ef5383
Compare
Fix a double-free bug when copying a vast::directory, that was caused by a Rule-of-Three violation; i.e. when copying a directory the contained `DIR*` was simply copied and then closed multiple time in the destructor.
2ef5383
to
af144d0
Compare
Add a new 'disk_monitor' actor that periodically monitors disk usage of the vast database directory and triggers removal of old partitions.
af144d0
to
553a664
Compare
Review instructions: Each commit can be reviewed individually, although 90% of the changes are in the last commit anyways.