Skip to content

Commit 905ad4e

Browse files
authored
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.
1 parent 79d46cc commit 905ad4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/indexlifecycle/WaitForRolloverReadyStep.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public void evaluateCondition(IndexMetaData indexMetaData, Listener listener) {
9898
// Similarly, if isWriteIndex is false (see note above on false vs. null), we can't roll over this index, so error out.
9999
if (Boolean.FALSE.equals(isWriteIndex)) {
100100
listener.onFailure(new IllegalArgumentException(String.format(Locale.ROOT,
101-
"index [%s] is not the write index for alias [%s]", rolloverAlias, indexMetaData.getIndex().getName())));
101+
"index [%s] is not the write index for alias [%s]", indexMetaData.getIndex().getName(), rolloverAlias)));
102102
}
103103

104104
RolloverRequest rolloverRequest = new RolloverRequest(rolloverAlias, null);

0 commit comments

Comments
 (0)