Skip to content

Commit

Permalink
Update shrink's bwc version to 6.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bleskes committed Nov 7, 2017
1 parent 9084243 commit 8f18b18
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class ResizeAction extends Action<ResizeRequest, ResizeResponse, ResizeRe

public static final ResizeAction INSTANCE = new ResizeAction();
public static final String NAME = "indices:admin/resize";
public static final Version COMPATIBILITY_VERSION = Version.V_7_0_0_alpha1; // TODO remove this once it's backported
public static final Version COMPATIBILITY_VERSION = Version.V_6_1_0; // TODO remove this once it's backported

private ResizeAction() {
super(NAME);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package org.elasticsearch.cluster.routing.allocation;

import org.elasticsearch.Version;
import org.elasticsearch.action.admin.indices.shrink.ResizeAction;
import org.elasticsearch.cluster.ClusterName;
import org.elasticsearch.cluster.ClusterState;
import org.elasticsearch.cluster.ESAllocationTestCase;
Expand Down Expand Up @@ -245,7 +246,7 @@ public void testSourcePrimaryActive() {

public void testAllocateOnOldNode() {
Version version = VersionUtils.randomVersionBetween(random(), Version.V_5_0_0,
VersionUtils.getPreviousVersion(Version.V_7_0_0_alpha1));
VersionUtils.getPreviousVersion(ResizeAction.COMPATIBILITY_VERSION));
ClusterState clusterState = createInitialClusterState(true, version);
MetaData.Builder metaBuilder = MetaData.builder(clusterState.metaData());
metaBuilder.put(IndexMetaData.builder("target").settings(settings(Version.CURRENT)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
"Split index via API":
- skip:
version: " - 6.99.99"
reason: Added in 7.0.0
version: " - 6.0.99"
reason: Added in 6.1.0
- do:
indices.create:
index: source
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
"Split index ignores target template mapping":
- skip:
version: " - 6.99.99"
reason: added in 7.0.0
version: " - 6.0.99"
reason: Added in 6.1.0

# create index
- do:
Expand Down

0 comments on commit 8f18b18

Please sign in to comment.