Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1402,6 +1402,15 @@ public static void updatePluggableDataFormatSettings(
}

public static void validateStoreTypeSettings(Settings settings) {
// Reject explicitly set empty store type (GH#22550)
if (IndexModule.INDEX_STORE_TYPE_SETTING.exists(settings)) {
String storeType = IndexModule.INDEX_STORE_TYPE_SETTING.get(settings);
if (storeType.isEmpty()) {
throw new IllegalArgumentException(
"Failed to parse value for setting [" + IndexModule.INDEX_STORE_TYPE_SETTING.getKey() + "] must not be empty"
);
}
Comment on lines +1406 to +1412

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can we add a unit test for this change

}
// deprecate simplefs store type:
if (IndexModule.Type.SIMPLEFS.match(IndexModule.INDEX_STORE_TYPE_SETTING.get(settings))) {
DEPRECATION_LOGGER.deprecate(
Expand Down
Loading