From de777fa3ccb919c60893df25eba0f37c1586804d Mon Sep 17 00:00:00 2001 From: Gordon Brown Date: Wed, 24 Jul 2019 11:38:07 -0400 Subject: [PATCH] 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. --- .../xpack/core/indexlifecycle/WaitForRolloverReadyStep.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/indexlifecycle/WaitForRolloverReadyStep.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/indexlifecycle/WaitForRolloverReadyStep.java index 46504dd305d7d..a845c2a5ff479 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/indexlifecycle/WaitForRolloverReadyStep.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/indexlifecycle/WaitForRolloverReadyStep.java @@ -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);