Fix swapped variables in error message (#44300)
The alias name and index were in the incorrect order in this error message. This commit corrects the order.
This commit is contained in:
parent
4cfd2fc6b2
commit
2ac54da60a
|
@ -98,7 +98,7 @@ public class WaitForRolloverReadyStep extends AsyncWaitStep {
|
||||||
// Similarly, if isWriteIndex is false (see note above on false vs. null), we can't roll over this index, so error out.
|
// 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)) {
|
if (Boolean.FALSE.equals(isWriteIndex)) {
|
||||||
listener.onFailure(new IllegalArgumentException(String.format(Locale.ROOT,
|
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);
|
RolloverRequest rolloverRequest = new RolloverRequest(rolloverAlias, null);
|
||||||
|
|
Loading…
Reference in New Issue