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

Timestamp start/end for vacuuming/consolidation #2227

Merged
merged 1 commit into from
Apr 26, 2021

Conversation

KiterLuc
Copy link
Contributor

Added configuration parameters to specify start and end times for
fragment and array metadata consolidation and vacuuming.

Also added more unit tests for opening an array at a starting timestamp.


TYPE: IMPROVEMENT
DESC: Timestamp start and end for vacuuming and consolidation

@KiterLuc KiterLuc requested a review from joe-maley April 23, 2021 16:59
Added configuration parameters to specify start and end times for
fragment and array metadata consolidation and vacuuming.

Also added more unit tests for opening an array at a starting timestamp.

---
TYPE: IMPROVEMENT
DESC: Timestamp start and end for vacuuming and consolidation
@KiterLuc KiterLuc force-pushed the lr/consolidation-timestamps branch from a527774 to 6fa6a06 Compare April 23, 2021 18:52
Copy link
Contributor

@joe-maley joe-maley left a comment

Choose a reason for hiding this comment

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

LGTM. Great work.

Copy link
Member

@stavrospapadopoulos stavrospapadopoulos left a comment

Choose a reason for hiding this comment

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

Looks great. I added some very minor comments.

The main point for discussion is the following. When we consolidate fragments today, we create a .vac file with the consolidated fragments that are now "to be vacuumed". What happens if we vacuum a subset of them based on the timestamps? Do we remove the .vac file? Also what happens if we vacuum a second subset based on the timestamps, which overlaps with the previously vacuumed fragments. Will the code error out, or ignore a fragment that does not exist?

I think it is a good idea to add unit tests around those different scenarios around vacuuming subsets of fragments in the .vac file.

test/src/unit-capi-array.cc Show resolved Hide resolved
test/src/unit-capi-consolidation.cc Show resolved Hide resolved
@joe-maley joe-maley merged commit bd11fe9 into dev Apr 26, 2021
@joe-maley joe-maley deleted the lr/consolidation-timestamps branch April 26, 2021 19:06
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.

3 participants