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
ISPN-14575 Remove properties attribute from indexing configuration #10758
Conversation
Instead of the dychotomy of |
it looks a good idea, I'm going to apply it |
Thanks for the review @tristantarrant. |
@tristantarrant I also added this commit 2ca9c49 to review the remaining deprecated / undocumented property |
MANUAL; | ||
|
||
public static IndexingMode requireValid(String value, Log logger) { | ||
return Arrays.stream(IndexingMode.values()) |
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.
Easier to do:
try {
return IndexingMode.valueOf(value.toUpperCase());
} catch (IllegalArgumentException e) {
throw Log.CONFIG.illegalEnumValue(value, EnumSet.allOf(IndexingMode.class));
}
|
||
public class IndexShardingConfiguration extends ConfigurationElement<IndexShardingConfiguration> { | ||
|
||
public static final AttributeDefinition<Integer> NUMBER_OF_SHARDS = |
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.
I think it would nicer to rename this to SHARDS
everywhere
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.
A couple more changes, please
Good ideas. I applied the changes |
Merged, thanks |
Thanks @tristantarrant |
https://issues.redhat.com/browse/ISPN-14575
and it depends on:
https://issues.redhat.com/browse/ISPN-14722
https://issues.redhat.com/browse/ISPN-14723