Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/geoshape-doc-values' into tl-d…
Browse files Browse the repository at this point in the history
…v-geoshape
  • Loading branch information
talevy committed May 1, 2019
2 parents cf57f71 + 0f6bd6e commit 088bb1d
Show file tree
Hide file tree
Showing 94 changed files with 1,088 additions and 348 deletions.
6 changes: 6 additions & 0 deletions docs/reference/settings/notification-settings.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,14 @@ required. For more information, see
{xpack-ref}/encrypting-data.html[Encrypting sensitive data in {watcher}].

`xpack.watcher.history.cleaner_service.enabled`::
ifdef::asciidoctor[]
added:[6.3.0,Default changed to `true`.]
deprecated:[7.0.0,Watcher history indices are now managed by the `watch-history-ilm-policy` ILM policy]
endif::[]
ifndef::asciidoctor[]
added[6.3.0,Default changed to `true`.]
deprecated[7.0.0,Watcher history indices are now managed by the `watch-history-ilm-policy` ILM policy]
endif::[]
+
Set to `true` (default) to enable the cleaner service. If this setting is
`true`, the `xpack.monitoring.enabled` setting must also be set to `true` with
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ setup:
---
"Test use_field":
- skip:
version: " - 7.0.99"
reason: "Implemented in 7.1"
version: " - 7.1.99"
reason: "Implemented in 7.2"
- do:
search:
index: test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
setup:
- skip:
features: headers
version: " - 7.0.99"
reason: "dense_vector functions were introduced in 7.1.0"
version: " - 7.1.99"
reason: "dense_vector functions were introduced in 7.2.0"

- do:
indices.create:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
setup:
- skip:
features: headers
version: " - 7.0.99"
reason: "dense_vector functions were introduced in 7.1.0"
version: " - 7.1.99"
reason: "dense_vector functions were introduced in 7.2.0"

- do:
indices.create:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
setup:
- skip:
version: " - 7.0.99"
reason: "added in 7.1.0"
version: " - 7.1.99"
reason: "added in 7.2.0"

- do:
indices.create:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
setup:
- skip:
version: " - 7.0.99"
reason: "added in 7.1.0"
version: " - 7.1.99"
reason: "added in 7.2.0"

- do:
indices.create:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
setup:
- skip:
features: headers
version: " - 7.0.99"
reason: "sparse_vector functions were introduced in 7.1.0"
version: " - 7.1.99"
reason: "sparse_vector functions were introduced in 7.2.0"

- do:
indices.create:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
setup:
- skip:
features: headers
version: " - 7.0.99"
reason: "sparse_vector functions were introduced in 7.1.0"
version: " - 7.1.99"
reason: "sparse_vector functions were introduced in 7.2.0"

- do:
indices.create:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ public void testClosedIndices() throws Exception {
closeIndex(index);
}

if (getOldClusterVersion().onOrAfter(Version.V_7_1_0)) {
if (getOldClusterVersion().onOrAfter(Version.V_7_2_0)) {
ensureGreenLongWait(index);
assertClosedIndex(index, true);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ public void testRecoveryClosedIndex() throws Exception {
}

final Version indexVersionCreated = indexVersionCreated(indexName);
if (indexVersionCreated.onOrAfter(Version.V_7_1_0)) {
if (indexVersionCreated.onOrAfter(Version.V_7_2_0)) {
// index was created on a version that supports the replication of closed indices,
// so we expect the index to be closed and replicated
ensureGreen(indexName);
Expand Down Expand Up @@ -393,7 +393,7 @@ public void testCloseIndexDuringRollingUpgrade() throws Exception {
closeIndex(indexName);
}

if (minimumNodeVersion.onOrAfter(Version.V_7_1_0)) {
if (minimumNodeVersion.onOrAfter(Version.V_7_2_0)) {
// index is created on a version that supports the replication of closed indices,
// so we expect the index to be closed and replicated
ensureGreen(indexName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@
)
$/
---
"Test cat indices output for closed index (pre 7.1.0)":
"Test cat indices output for closed index (pre 7.2.0)":
- skip:
version: "7.1.0 - "
reason: "closed indices are replicated starting version 7.1.0"
version: "7.2.0 - "
reason: "closed indices are replicated starting version 7.2.0"

- do:
indices.create:
Expand Down Expand Up @@ -93,8 +93,8 @@
---
"Test cat indices output for closed index":
- skip:
version: " - 7.0.99"
reason: "closed indices are replicated starting version 7.1.0"
version: " - 7.1.99"
reason: "closed indices are replicated starting version 7.2.0"

- do:
indices.create:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@
---
"Test cat recovery output for closed index":
- skip:
version: " - 7.0.99"
reason: closed indices are replicated starting version 7.1.0
version: " - 7.1.99"
reason: closed indices are replicated starting version 7.2.0

- do:
indices.create:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
"Help":
- skip:
version: " - 7.0.99"
reason: external refresh stats were added in 7.1.0
version: " - 7.1.99"
reason: external refresh stats were added in 7.2.0
- do:
cat.shards:
help: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
---
"Cluster shard allocation explanation test with a closed index":
- skip:
version: " - 7.0.99"
reason: closed indices are replicated starting version 7.1.0
version: " - 7.1.99"
reason: closed indices are replicated starting version 7.2.0

- do:
indices.create:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@
- is_true: indices.test_index.shards

---
"cluster health with closed index (pre 7.1.0)":
"cluster health with closed index (pre 7.2.0)":
- skip:
version: "7.1.0 - "
reason: "closed indices are replicated starting version 7.1.0"
version: "7.2.0 - "
reason: "closed indices are replicated starting version 7.2.0"

- do:
indices.create:
Expand Down Expand Up @@ -206,8 +206,8 @@
---
"cluster health with closed index":
- skip:
version: " - 7.0.99"
reason: "closed indices are replicated starting version 7.1.0"
version: " - 7.1.99"
reason: "closed indices are replicated starting version 7.2.0"

- do:
indices.create:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ setup:
---
"cluster health with expand_wildcards":
- skip:
version: " - 7.0.99"
reason: "indices options has been introduced in cluster health request starting version 7.1.0"
version: " - 7.1.99"
reason: "indices options has been introduced in cluster health request starting version 7.2.0"

- do:
cluster.health:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@
"get cluster stats returns packaging types":

- skip:
version: " - 7.0.99"
reason: "packaging types are added for v7.1.0"
version: " - 7.1.99"
reason: "packaging types are added for v7.2.0"

- do:
cluster.stats: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ setup:
---
"Field caps with include_unmapped":
- skip:
version: " - 7.0.99"
reason: include_unmapped has been added in 7.1.0
version: " - 7.1.99"
reason: include_unmapped has been added in 7.2.0

- do:
field_caps:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
---
"Flush parameters validation":
- skip:
version: " - 7.0.99"
reason: flush parameters validation is introduced in 7.1.0
version: " - 7.1.99"
reason: flush parameters validation is introduced in 7.2.0
- do:
indices.create:
index: test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
---
"Close index with wait_for_active_shards set to all":
- skip:
version: " - 7.0.99"
reason: "closed indices are replicated starting version 7.1.0"
version: " - 7.1.99"
reason: "closed indices are replicated starting version 7.2.0"

- do:
indices.create:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
---
"Indices recovery test for closed index":
- skip:
version: " - 7.0.99"
reason: closed indices are replicated starting version 7.1.0
version: " - 7.1.99"
reason: closed indices are replicated starting version 7.2.0

- do:
indices.create:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ setup:
"Segment Stats":

- skip:
version: " - 7.0.99"
version: " - 7.1.99"
reason: forbid_closed_indices is not supported in ealier version

- do:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,8 @@ setup:
---
"Missing source":
- skip:
version: " - 7.0.99"
reason: null/empty sources disallowed in 7.1
version: " - 7.1.99"
reason: null/empty sources disallowed in 7.2

- do:
catch: /Composite \[sources\] cannot be null or empty/
Expand Down Expand Up @@ -516,8 +516,8 @@ setup:
---
"Duplicate sources":
- skip:
version: " - 7.0.99"
reason: duplicate names disallowed in 7.1
version: " - 7.1.99"
reason: duplicate names disallowed in 7.2

- do:
catch: /Composite source names must be unique, found duplicates[:] \[keyword\]/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,8 @@ setup:
---
"Test overlapping":
- skip:
version: " - 7.0.99"
reason: "Implemented in 7.1"
version: " - 7.1.99"
reason: "Implemented in 7.2"
- do:
search:
index: test
Expand All @@ -346,8 +346,8 @@ setup:
---
"Test before":
- skip:
version: " - 7.0.99"
reason: "Implemented in 7.1"
version: " - 7.1.99"
reason: "Implemented in 7.2"
- do:
search:
index: test
Expand All @@ -366,8 +366,8 @@ setup:
---
"Test after":
- skip:
version: " - 7.0.99"
reason: "Implemented in 7.1"
version: " - 7.1.99"
reason: "Implemented in 7.2"
- do:
search:
index: test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
setup:
- skip:
version: " - 7.0.99"
reason: "Implemented in 7.1"
version: " - 7.1.99"
reason: "Implemented in 7.2"

- do:
indices.create:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
setup:
- skip:
version: " - 7.0.99"
reason: "added in 7.1.0"
version: " - 7.1.99"
reason: "added in 7.2.0"

- do:
indices.create:
Expand Down
12 changes: 12 additions & 0 deletions server/src/main/java/org/elasticsearch/Version.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,18 @@ public class Version implements Comparable<Version>, ToXContentFragment {
public static final Version V_6_7_1 = new Version(V_6_7_1_ID, org.apache.lucene.util.Version.LUCENE_7_7_0);
public static final int V_6_7_2_ID = 6070299;
public static final Version V_6_7_2 = new Version(V_6_7_2_ID, org.apache.lucene.util.Version.LUCENE_7_7_0);
public static final int V_6_8_0_ID = 6080099;
public static final Version V_6_8_0 = new Version(V_6_8_0_ID, org.apache.lucene.util.Version.LUCENE_7_7_0);
public static final int V_7_0_0_ID = 7000099;
public static final Version V_7_0_0 = new Version(V_7_0_0_ID, org.apache.lucene.util.Version.LUCENE_8_0_0);
public static final int V_7_0_1_ID = 7000199;
public static final Version V_7_0_1 = new Version(V_7_0_1_ID, org.apache.lucene.util.Version.LUCENE_8_0_0);
public static final int V_7_0_2_ID = 7000299;
public static final Version V_7_0_2 = new Version(V_7_0_2_ID, org.apache.lucene.util.Version.LUCENE_8_0_0);
public static final int V_7_1_0_ID = 7010099;
public static final Version V_7_1_0 = new Version(V_7_1_0_ID, org.apache.lucene.util.Version.LUCENE_8_0_0);
public static final int V_7_2_0_ID = 7020099;
public static final Version V_7_2_0 = new Version(V_7_2_0_ID, org.apache.lucene.util.Version.LUCENE_8_0_0);
public static final int V_8_0_0_ID = 8000099;
public static final Version V_8_0_0 = new Version(V_8_0_0_ID, org.apache.lucene.util.Version.LUCENE_8_1_0);
public static final Version CURRENT = V_8_0_0;
Expand All @@ -152,12 +158,18 @@ public static Version fromId(int id) {
switch (id) {
case V_8_0_0_ID:
return V_8_0_0;
case V_7_2_0_ID:
return V_7_2_0;
case V_7_1_0_ID:
return V_7_1_0;
case V_7_0_2_ID:
return V_7_0_2;
case V_7_0_1_ID:
return V_7_0_1;
case V_7_0_0_ID:
return V_7_0_0;
case V_6_8_0_ID:
return V_6_8_0;
case V_6_7_1_ID:
return V_6_7_1;
case V_6_7_2_ID:
Expand Down
Loading

0 comments on commit 088bb1d

Please sign in to comment.