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

refactor: move segment manifest cache to fetch module #484

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

jeqo
Copy link
Contributor

@jeqo jeqo commented Jan 31, 2024

Context: There were some previous efforts on defining generic cache config. This follows up on that by making the SegmentManifest fetching reuse this definition. It also aligns with the SegmentIndexes fetching.

Moving the segment-manifest fetching to the fetch module helps to align with other caches and reuse configuration.

Following work should help to align cache config for chunk caching.

@jeqo jeqo force-pushed the jeqo/refactor-segment-manifest-cache branch 2 times, most recently from be5f6ff to 3b8678f Compare September 11, 2024 13:14
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Expanding to make it compatible with RSMConfig defaults

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cover all defaults config tests + new set default option

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Handled by CacheConfigTest already

@@ -0,0 +1,123 @@
/*
* Copyright 2023 Aiven Oy
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not new, but moving+renaming SegmentManifestProvider

@jeqo jeqo changed the title refactor: Reuse CacheConfig on Segment Manifest cache refactor: move segment manifest cache to fetch module Sep 11, 2024
Moving the segment-manifest fetching to the fetch module helps to align with other caches and reuse configuration.

Following work should help to align cache config for chunk caching.
@jeqo jeqo force-pushed the jeqo/refactor-segment-manifest-cache branch from 3b8678f to 11d4afe Compare September 12, 2024 06:34
@jeqo jeqo marked this pull request as ready for review September 12, 2024 07:24
@jeqo jeqo requested a review from a team as a code owner September 12, 2024 07:24
Copy link
Contributor

@biggusdonzus biggusdonzus left a comment

Choose a reason for hiding this comment

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

👍

@biggusdonzus biggusdonzus merged commit 2322332 into main Sep 13, 2024
9 checks passed
@biggusdonzus biggusdonzus deleted the jeqo/refactor-segment-manifest-cache branch September 13, 2024 13:30
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