From f1f54e0f6137e55c403da2bb25e27b98c38f2ade Mon Sep 17 00:00:00 2001 From: Tanguy Leroux Date: Fri, 25 Jan 2019 16:31:26 +0100 Subject: [PATCH] TransportUnfollowAction should increase settings version (#37859) The TransportUnfollowAction updates the index settings but does not increase the settings version to reflect that change. This issue has been caught while working on the replication of closed indices (#33888). The IndexFollowingIT.testUnfollowIndex() started to fail and this specific assertion tripped. It does not happen on master branch today because index metadata for closed indices are never updated in IndexService instances, but this is something that is going to change with the replication of closed indices. --- .../xpack/ccr/action/TransportUnfollowAction.java | 9 +++++---- .../xpack/ccr/action/TransportUnfollowActionTests.java | 3 +++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/TransportUnfollowAction.java b/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/TransportUnfollowAction.java index a42ff658dc9..3a158aceddb 100644 --- a/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/TransportUnfollowAction.java +++ b/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/TransportUnfollowAction.java @@ -105,18 +105,19 @@ public class TransportUnfollowAction extends TransportMasterNodeAction