-
Notifications
You must be signed in to change notification settings - Fork 477
Update isPropertySet to check parent config #4112
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
keith-turner
approved these changes
Dec 22, 2023
ctubbsii
added a commit
to ctubbsii/accumulo
that referenced
this pull request
Dec 23, 2023
This reverts commit 4c3085b.
asfgit
pushed a commit
that referenced
this pull request
Dec 23, 2023
ctubbsii
added a commit
to ctubbsii/accumulo
that referenced
this pull request
Dec 23, 2023
This is a reapplication of apache#4092 after it was reverted without apache#4112, and using ctubbsii's use of SiteConfiguration for testing overrides rather than modifications to ConfigurationCopy * Add tests for maxOpen to override open.max Adds a test to ensure that setting the maxOpen option for a compaction service will override the deprecated `open.max` property if set. Condenses helper methods in planner tests Uses CompactionPlannerInitParams for tests instead of custom test code Modifies the ConfigurationCopy class to accept a parent conf to allow for testing user set properties vs default values in test cases Adds test case for default compaction service used with deprecated property Removes hardcoded maxOpen value with reference to default property value Modifies the getFullyQualifiedOption to return the correct path for the `<service>.planner.opts.` properties. Use SiteConfiguration to test overrides (contributed by ctubbsii) Use SiteConfiguration with overrides, instead of ConfigurationCopy, to test override behavior for DefaultCompactionPlannerTest, preserving ConfigurationCopy's role as a simple "flat" configuration object for testing and simple operations. Co-authored-by: Christopher Tubbs <ctubbsii@apache.org>
Member
ctubbsii
added a commit
to ctubbsii/accumulo
that referenced
this pull request
Dec 23, 2023
This fixes a bug in the compaction properties to ensure the replacement property is always preferred over the deprecated open.max compaction property when it is set. Add tests for maxOpen to override open.max: * Adds a test to ensure that setting the maxOpen option for a compaction service will override the deprecated `open.max` property if set * Condenses helper methods in planner tests * Uses CompactionPlannerInitParams for tests instead of custom test code * Adds test case for default compaction service used with deprecated property * Removes hardcoded maxOpen value with reference to default property value * Modifies the getFullyQualifiedOption to return the correct path for the `<service>.planner.opts.` properties This is a reapplication of apache#4092 after it was reverted, to use SiteConfiguration for testing overrides rather than modifications to ConfigurationCopy Changes made by ctubbsii that diverge from apache#4092: * Update commit log message to add detail and format it * Omit changes to ConfigurationCopy, including changes in apache#4112, which is now OBE, to add a parent to preserve its role as a simple "flat" configuration object for testing and simple operations * Use SiteConfiguration with overrides, instead of ConfigurationCopy with a parent, to test override behavior for DefaultCompactionPlannerTest Co-authored-by: Christopher Tubbs <ctubbsii@apache.org>
ddanielr
added a commit
that referenced
this pull request
Dec 27, 2023
This fixes a bug in the compaction properties to ensure the replacement property is always preferred over the deprecated open.max compaction property when it is set. Add tests for maxOpen to override open.max: * Adds a test to ensure that setting the maxOpen option for a compaction service will override the deprecated `open.max` property if set * Condenses helper methods in planner tests * Uses CompactionPlannerInitParams for tests instead of custom test code * Adds test case for default compaction service used with deprecated property * Removes hardcoded maxOpen value with reference to default property value * Modifies the getFullyQualifiedOption to return the correct path for the `<service>.planner.opts.` properties This is a reapplication of #4092 after it was reverted, to use SiteConfiguration for testing overrides rather than modifications to ConfigurationCopy Changes made by ctubbsii that diverge from #4092: * Update commit log message to add detail and format it * Omit changes to ConfigurationCopy, including changes in #4112, which is now OBE, to add a parent to preserve its role as a simple "flat" configuration object for testing and simple operations * Use SiteConfiguration with overrides, instead of ConfigurationCopy with a parent, to test override behavior for DefaultCompactionPlannerTest Co-authored-by: Daniel Roberts <ddanielr@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Modifies
isPropertySetto also check the parent config if it exists.