Skip to content

Commit

Permalink
Fix swapped variables in error message (elastic#44300)
Browse files Browse the repository at this point in the history
The alias name and index were in the incorrect order in this error
message. This commit corrects the order.
  • Loading branch information
gwbrown authored Jul 24, 2019
1 parent 0d09fcf commit de777fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public void evaluateCondition(IndexMetaData indexMetaData, Listener listener) {
// Similarly, if isWriteIndex is false (see note above on false vs. null), we can't roll over this index, so error out.
if (Boolean.FALSE.equals(isWriteIndex)) {
listener.onFailure(new IllegalArgumentException(String.format(Locale.ROOT,
"index [%s] is not the write index for alias [%s]", rolloverAlias, indexMetaData.getIndex().getName())));
"index [%s] is not the write index for alias [%s]", indexMetaData.getIndex().getName(), rolloverAlias)));
}

RolloverRequest rolloverRequest = new RolloverRequest(rolloverAlias, null);
Expand Down

0 comments on commit de777fa

Please sign in to comment.