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: expose configDef() for all cache config sets #602

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

jeqo
Copy link
Contributor

@jeqo jeqo commented Oct 1, 2024

This is needed for documentation purposes (#601), while also improving the cache config builder.

@jeqo jeqo force-pushed the jeqo/refactor-cache-config branch from b1576a8 to b6d58ca Compare October 1, 2024 13:13
This is needed for documentation purposes, while also improving the
cache config builder.
@jeqo jeqo force-pushed the jeqo/refactor-cache-config branch from b6d58ca to 881af51 Compare October 1, 2024 13:15
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'd start review here: this is the main change affecting the cache config hierarchy.
Then continue with MemorySegmentIndexes/MemorySegmentManifest configs, and then ChunkCacheConfig and its children

Comment on lines +43 to 46
public CacheConfig(
final ConfigDef configDef,
final Object defaultSize,
final long defaultRetentionMs
final Map<String, ?> props
) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Disentangle configDef from CacheConfig. Instead the DefBuilder defines the config definition.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just adjusting new instantiation.

@jeqo jeqo requested a review from biggusdonzus October 1, 2024 13:26
@jeqo jeqo marked this pull request as ready for review October 1, 2024 13:28
@jeqo jeqo requested a review from a team as a code owner October 1, 2024 13:28
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.

Code looks good, but i don't understand some of the changes like why in CacheConfig.java why move the configDef.define defs into the DefBuilder class? But maybe that's necessary for the documentation feature, so in the end it's just my ramblings 😃

@biggusdonzus biggusdonzus merged commit 09865be into main Oct 2, 2024
10 checks passed
@biggusdonzus biggusdonzus deleted the jeqo/refactor-cache-config branch October 2, 2024 14:39
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