Skip to content

Commit

Permalink
Change remote_store setting validation message to make it more clear
Browse files Browse the repository at this point in the history
Signed-off-by: Sachin Kale <kalsac@amazon.com>
  • Loading branch information
Sachin Kale committed Aug 12, 2022
1 parent 7dad063 commit d6dea08
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,12 +302,12 @@ public void validate(final Boolean value, final Map<Setting<?>, Object> settings
final Object replicationType = settings.get(INDEX_REPLICATION_TYPE_SETTING);
if (replicationType != ReplicationType.SEGMENT && value == true) {
throw new IllegalArgumentException(
"Settings "
"To enable "
+ INDEX_REMOTE_STORE_ENABLED_SETTING.getKey()
+ " cannot be enabled when "
+ ", "
+ INDEX_REPLICATION_TYPE_SETTING.getKey()
+ " is set to "
+ settings.get(INDEX_REPLICATION_TYPE_SETTING)
+ " should be set to "
+ ReplicationType.SEGMENT
);
}
}
Expand Down

0 comments on commit d6dea08

Please # to comment.