Skip to content

Commit a663613

Browse files
committed
Merge branch 'master' into replicated-closed-indices
2 parents f53cd65 + 4e9b1cf commit a663613

File tree

81 files changed

+900
-2505
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+900
-2505
lines changed

client/rest/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ apply plugin: 'elasticsearch.build'
2222
apply plugin: 'nebula.maven-base-publish'
2323
apply plugin: 'nebula.maven-scm'
2424

25-
targetCompatibility = JavaVersion.VERSION_1_7
26-
sourceCompatibility = JavaVersion.VERSION_1_7
25+
targetCompatibility = JavaVersion.VERSION_1_8
26+
sourceCompatibility = JavaVersion.VERSION_1_8
2727

2828
group = 'org.elasticsearch.client'
2929
archivesBaseName = 'elasticsearch-rest-client'

client/sniffer/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ apply plugin: 'elasticsearch.build'
2020
apply plugin: 'nebula.maven-base-publish'
2121
apply plugin: 'nebula.maven-scm'
2222

23-
targetCompatibility = JavaVersion.VERSION_1_7
24-
sourceCompatibility = JavaVersion.VERSION_1_7
23+
targetCompatibility = JavaVersion.VERSION_1_8
24+
sourceCompatibility = JavaVersion.VERSION_1_8
2525

2626
group = 'org.elasticsearch.client'
2727
archivesBaseName = 'elasticsearch-rest-client-sniffer'

client/test/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
*/
1919
apply plugin: 'elasticsearch.build'
2020

21-
targetCompatibility = JavaVersion.VERSION_1_7
22-
sourceCompatibility = JavaVersion.VERSION_1_7
21+
targetCompatibility = JavaVersion.VERSION_1_8
22+
sourceCompatibility = JavaVersion.VERSION_1_8
2323

2424
group = "${group}.client.test"
2525

distribution/docker/build.gradle

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,35 @@ dependencies {
1818
}
1919

2020
ext.expansions = { oss ->
21-
String classifier = 'linux-x86_64'
21+
final String classifier = 'linux-x86_64'
22+
final String elasticsearch = oss ? "elasticsearch-oss-${VersionProperties.elasticsearch}-${classifier}.tar.gz" : "elasticsearch-${VersionProperties.elasticsearch}-${classifier}.tar.gz"
2223
return [
23-
'elasticsearch' : oss ? "elasticsearch-oss-${VersionProperties.elasticsearch}-${classifier}.tar.gz" : "elasticsearch-${VersionProperties.elasticsearch}-${classifier}.tar.gz",
24-
'jdkUrl' : 'https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_linux-x64_bin.tar.gz',
25-
'jdkVersion' : '11.0.2',
26-
'license': oss ? 'Apache-2.0' : 'Elastic License',
27-
'version' : VersionProperties.elasticsearch
24+
'elasticsearch' : elasticsearch,
25+
'jdkUrl' : 'https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_linux-x64_bin.tar.gz',
26+
'jdkVersion' : '11.0.2',
27+
'license' : oss ? 'Apache-2.0' : 'Elastic License',
28+
'source_elasticsearch': local() ? "COPY $elasticsearch /opt/" : "RUN curl --retry 8 -s -L -O https://artifacts.elastic.co/downloads/elasticsearch/${elasticsearch}",
29+
'version' : VersionProperties.elasticsearch
2830
]
2931
}
3032

33+
/*
34+
* We need to be able to render a Dockerfile that references the official artifacts on https://artifacts.elastic.co. For this, we use a
35+
* substitution in the Dockerfile template where we can either replace source_elasticsearch with a COPY from the Docker build context, or
36+
* a RUN curl command to retrieve the artifact from https://artifacts.elastic.co. The system property build.docker.source, which can be
37+
* either "local" (default) or "remote" controls which version of the Dockerfile is produced.
38+
*/
39+
private static boolean local() {
40+
final String buildDockerSource = System.getProperty("build.docker.source")
41+
if (buildDockerSource == null || "local".equals(buildDockerSource)) {
42+
return true
43+
} else if ("remote".equals(buildDockerSource)) {
44+
return false
45+
} else {
46+
throw new IllegalArgumentException("expected build.docker.source to be [local] or [remote] but was [" + buildDockerSource + "]")
47+
}
48+
}
49+
3150
private static String files(final boolean oss) {
3251
return "build/${ oss ? 'oss-' : ''}docker"
3352
}
@@ -48,20 +67,22 @@ void addCopyDockerContextTask(final boolean oss) {
4867
from 'src/docker/config'
4968
}
5069

51-
if (oss) {
52-
from configurations.ossDockerSource
53-
} else {
54-
from configurations.dockerSource
55-
}
70+
if (local()) {
71+
if (oss) {
72+
from configurations.ossDockerSource
73+
} else {
74+
from configurations.dockerSource
75+
}
5676

57-
from configurations.dockerPlugins
77+
from configurations.dockerPlugins
78+
}
5879
}
5980
}
6081

6182
void addCopyDockerfileTask(final boolean oss) {
6283
task(taskName("copy", oss, "Dockerfile"), type: Copy) {
84+
dependsOn taskName("copy", oss, "DockerContext")
6385
inputs.properties(expansions(oss)) // ensure task is run when ext.expansions is changed
64-
mustRunAfter(taskName("copy", oss, "DockerContext"))
6586
into files(oss)
6687

6788
from('src/docker/Dockerfile') {
@@ -70,7 +91,6 @@ void addCopyDockerfileTask(final boolean oss) {
7091
}
7192
}
7293

73-
7494
preProcessFixture {
7595
dependsOn taskName("copy", true, "DockerContext")
7696
dependsOn taskName("copy", true, "Dockerfile")

distribution/docker/src/docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ RUN groupadd -g 1000 elasticsearch && \
3030

3131
WORKDIR /usr/share/elasticsearch
3232

33-
COPY ${elasticsearch} /opt/
33+
${source_elasticsearch}
34+
3435
RUN tar zxf /opt/${elasticsearch} --strip-components=1
3536
RUN mkdir -p config data logs
3637
RUN chmod 0775 config data logs
3738
COPY config/elasticsearch.yml config/log4j2.properties config/
3839

39-
4040
################################################################################
4141
# Build stage 1 (the actual elasticsearch image):
4242
# Copy elasticsearch from stage 0

docs/reference/aggregations/bucket.asciidoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ include::bucket/geodistance-aggregation.asciidoc[]
3939

4040
include::bucket/geohashgrid-aggregation.asciidoc[]
4141

42+
include::bucket/geotilegrid-aggregation.asciidoc[]
43+
4244
include::bucket/global-aggregation.asciidoc[]
4345

4446
include::bucket/histogram-aggregation.asciidoc[]
@@ -62,4 +64,3 @@ include::bucket/significantterms-aggregation.asciidoc[]
6264
include::bucket/significanttext-aggregation.asciidoc[]
6365

6466
include::bucket/terms-aggregation.asciidoc[]
65-

docs/reference/ingest/processors/dissect.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Named skip key modifier example
170170
| *Pattern* | `%{clientip} %{?ident} %{?auth} [%{@timestamp}]`
171171
| *Input* | 1.2.3.4 - - [30/Apr/1998:22:00:52 +0000]
172172
| *Result* a|
173-
* ip = 1.2.3.4
173+
* clientip = 1.2.3.4
174174
* @timestamp = 30/Apr/1998:22:00:52 +0000
175175
|======
176176

docs/reference/migration/apis/deprecation.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Example response:
5454
{
5555
"level" : "critical",
5656
"message" : "Cluster name cannot contain ':'",
57-
"url" : "{ref}/breaking-changes-7.0.html#_literal_literal_is_no_longer_allowed_in_cluster_name",
57+
"url" : "{ref-70}/breaking-changes-7.0.html#_literal_literal_is_no_longer_allowed_in_cluster_name",
5858
"details" : "This cluster is named [mycompany:logging], which contains the illegal character ':'."
5959
}
6060
],
@@ -64,7 +64,7 @@ Example response:
6464
{
6565
"level" : "warning",
6666
"message" : "Index name cannot contain ':'",
67-
"url" : "{ref}/breaking-changes-7.0.html#_literal_literal_is_no_longer_allowed_in_index_name",
67+
"url" : "{ref-70}/breaking-changes-7.0.html#_literal_literal_is_no_longer_allowed_in_index_name",
6868
"details" : "This index is named [logs:apache], which contains the illegal character ':'."
6969
}
7070
]

docs/reference/migration/index.asciidoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,7 @@ For more information, see <<setup-upgrade>>.
2121

2222
See also <<release-highlights>> and <<es-release-notes>>.
2323

24+
* <<breaking-changes-8.0,Breaking changes in 8.0>>
25+
2426
--
25-
include::migrate_7_0.asciidoc[]
27+
include::migrate_8_0.asciidoc[]

docs/reference/migration/migrate_7_0.asciidoc

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)