Skip to content

Commit a095780

Browse files
committed
Merge remote-tracking branch 'elastic/6.x' into ccr-6.x
* elastic/6.x: (50 commits) Painless: Restructure/Clean Up of Spec Documentation (#31013) Add support for ignore_unmapped to geo sort (#31153) Enable engine factory to be pluggable (#31183) Remove vestiges of animal sniffer (#31178) Rename elasticsearch-core to core (#31185) Move cli sub-project out of server to libs (#31184) QA: Fixup rolling restart tests QA: Better seed nodes for rolling restart [DOCS] Fixes broken link in release notes [DOCS] Fixes broken link in auditing settings [DOCS] Moves ML content to stack-docs [DOCS] Clarifies recommendation for audit index output type (#31146) QA: Set better node names on rolling restart tests QA: Skip mysterious failing rolling upgrade tests Share common parser in some AcknowledgedResponses (#31169) Fix random failure on SearchQueryIT#testTermExpansionExceptionOnSpanFailure Remove reference to multiple fields with one name (#31127) Remove BlobContainer.move() method (#31100) [Docs] Correct minor typos in templates.asciidoc (#31167) Use ESBlobStoreRepositoryIntegTestCase to test the repository-s3 plugin (#29315) ...
2 parents 66901a8 + 0e697f4 commit a095780

File tree

314 files changed

+7655
-5453
lines changed

Some content is hidden

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

314 files changed

+7655
-5453
lines changed

build.gradle

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ subprojects {
200200
"org.elasticsearch.gradle:build-tools:${version}": ':build-tools',
201201
"org.elasticsearch:rest-api-spec:${version}": ':rest-api-spec',
202202
"org.elasticsearch:elasticsearch:${version}": ':server',
203-
"org.elasticsearch:elasticsearch-cli:${version}": ':server:cli',
204-
"org.elasticsearch:elasticsearch-core:${version}": ':libs:elasticsearch-core',
203+
"org.elasticsearch:elasticsearch-cli:${version}": ':libs:cli',
204+
"org.elasticsearch:elasticsearch-core:${version}": ':libs:core',
205205
"org.elasticsearch:elasticsearch-x-content:${version}": ':libs:x-content',
206206
"org.elasticsearch:elasticsearch-secure-sm:${version}": ':libs:secure-sm',
207207
"org.elasticsearch.client:elasticsearch-rest-client:${version}": ':client:rest',
@@ -220,6 +220,7 @@ subprojects {
220220
"org.elasticsearch.distribution.deb:elasticsearch:${version}": ':distribution:packages:deb',
221221
"org.elasticsearch.distribution.deb:elasticsearch-oss:${version}": ':distribution:packages:oss-deb',
222222
"org.elasticsearch.test:logger-usage:${version}": ':test:logger-usage',
223+
"org.elasticsearch.xpack.test:feature-aware:${version}": ':x-pack:test:feature-aware',
223224
// for transport client
224225
"org.elasticsearch.plugin:transport-netty4-client:${version}": ':modules:transport-netty4',
225226
"org.elasticsearch.plugin:reindex-client:${version}": ':modules:reindex',
@@ -305,7 +306,15 @@ gradle.projectsEvaluated {
305306
// :test:framework:test cannot run before and after :server:test
306307
return
307308
}
308-
configurations.all {
309+
configurations.all { Configuration configuration ->
310+
/*
311+
* The featureAwarePlugin configuration has a dependency on x-pack:plugin:core and x-pack:plugin:core has a dependency on the
312+
* featureAwarePlugin configuration. The below task ordering logic would force :x-pack:plugin:core:test
313+
* :x-pack:test:feature-aware:test to depend on each other circularly. We break that cycle here.
314+
*/
315+
if (configuration.name == "featureAwarePlugin") {
316+
return
317+
}
309318
dependencies.all { Dependency dep ->
310319
Project upstreamProject = dependencyToProject(dep)
311320
if (upstreamProject != null) {

buildSrc/src/main/groovy/org/elasticsearch/gradle/test/ClusterConfiguration.groovy

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ class ClusterConfiguration {
8787
* A closure to call which returns the unicast host to connect to for cluster formation.
8888
*
8989
* This allows multi node clusters, or a new cluster to connect to an existing cluster.
90-
* The closure takes two arguments, the NodeInfo for the first node in the cluster, and
91-
* an AntBuilder which may be used to wait on conditions before returning.
90+
* The closure takes three arguments, the NodeInfo for the first node in the cluster,
91+
* the NodeInfo for the node current being configured, an AntBuilder which may be used
92+
* to wait on conditions before returning.
9293
*/
9394
@Input
9495
Closure unicastTransportUri = { NodeInfo seedNode, NodeInfo node, AntBuilder ant ->

client/rest/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ forbiddenApisTest {
6969
}
7070

7171
// JarHell is part of es server, which we don't want to pull in
72-
// TODO: Not anymore. Now in elasticsearch-core
72+
// TODO: Not anymore. Now in :libs:core
7373
jarHell.enabled=false
7474

7575
namingConventions {

client/sniffer/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ dependencyLicenses {
7272
}
7373

7474
// JarHell is part of es server, which we don't want to pull in
75-
// TODO: Not anymore. Now in elasticsearch-core
75+
// TODO: Not anymore. Now in :libs:core
7676
jarHell.enabled=false
7777

7878
namingConventions {

client/sniffer/src/test/java/org/elasticsearch/client/sniff/ElasticsearchHostsSnifferTests.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import org.apache.http.Consts;
3131
import org.apache.http.HttpHost;
3232
import org.apache.http.client.methods.HttpGet;
33-
import org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement;
3433
import org.elasticsearch.client.Response;
3534
import org.elasticsearch.client.ResponseException;
3635
import org.elasticsearch.client.RestClient;
@@ -148,8 +147,6 @@ private static HttpServer createHttpServer(final SniffResponse sniffResponse, fi
148147
return httpServer;
149148
}
150149

151-
//animal-sniffer doesn't like our usage of com.sun.net.httpserver.* classes
152-
@IgnoreJRERequirement
153150
private static class ResponseHandler implements HttpHandler {
154151
private final int sniffTimeoutMillis;
155152
private final SniffResponse sniffResponse;

client/test/build.gradle

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import org.elasticsearch.gradle.precommit.PrecommitTasks
2121
import org.gradle.api.JavaVersion
2222

2323
apply plugin: 'elasticsearch.build'
24-
apply plugin: 'ru.vyarus.animalsniffer'
2524

2625
targetCompatibility = JavaVersion.VERSION_1_7
2726
sourceCompatibility = JavaVersion.VERSION_1_7
@@ -31,8 +30,6 @@ dependencies {
3130
compile "com.carrotsearch.randomizedtesting:randomizedtesting-runner:${versions.randomizedrunner}"
3231
compile "junit:junit:${versions.junit}"
3332
compile "org.hamcrest:hamcrest-all:${versions.hamcrest}"
34-
compile "org.codehaus.mojo:animal-sniffer-annotations:1.15"
35-
signature "org.codehaus.mojo.signature:java17:1.0@signature"
3633
}
3734

3835
forbiddenApisMain {
@@ -49,7 +46,7 @@ forbiddenApisTest {
4946
}
5047

5148
// JarHell is part of es server, which we don't want to pull in
52-
// TODO: Not anymore. Now in elasticsearch-core
49+
// TODO: Not anymore. Now in :libs:core
5350
jarHell.enabled=false
5451

5552
// TODO: should we have licenses for our test deps?

distribution/src/bin/elasticsearch-cli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ exec \
2424
-Des.distribution.flavor="$ES_DISTRIBUTION_FLAVOR" \
2525
-Des.distribution.type="$ES_DISTRIBUTION_TYPE" \
2626
-cp "$ES_CLASSPATH" \
27-
$1 \
28-
"${@:2}"
27+
"$ES_MAIN_CLASS" \
28+
"$@"

distribution/src/bin/elasticsearch-cli.bat

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ if defined ES_ADDITIONAL_SOURCES (
66
)
77
)
88

9-
for /f "tokens=1*" %%a in ("%*") do (
10-
set main_class=%%a
11-
set arguments=%%b
12-
)
13-
149
if defined ES_ADDITIONAL_CLASSPATH_DIRECTORIES (
1510
for %%a in ("%ES_ADDITIONAL_CLASSPATH_DIRECTORIES:;=","%") do (
1611
set ES_CLASSPATH=!ES_CLASSPATH!;!ES_HOME!/%%a/*
@@ -24,5 +19,5 @@ if defined ES_ADDITIONAL_CLASSPATH_DIRECTORIES (
2419
-Des.distribution.flavor="%ES_DISTRIBUTION_FLAVOR%" ^
2520
-Des.distribution.type="%ES_DISTRIBUTION_TYPE%" ^
2621
-cp "%ES_CLASSPATH%" ^
27-
%main_class% ^
28-
%arguments%
22+
"%ES_MAIN_CLASS%" ^
23+
%*
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
22

3-
"`dirname "$0"`"/elasticsearch-cli \
4-
org.elasticsearch.common.settings.KeyStoreCli \
3+
ES_MAIN_CLASS=org.elasticsearch.common.settings.KeyStoreCli \
4+
"`dirname "$0"`"/elasticsearch-cli \
55
"$@"

distribution/src/bin/elasticsearch-keystore.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
setlocal enabledelayedexpansion
44
setlocal enableextensions
55

6+
set ES_MAIN_CLASS=org.elasticsearch.common.settings.KeyStoreCli
67
call "%~dp0elasticsearch-cli.bat" ^
7-
org.elasticsearch.common.settings.KeyStoreCli ^
88
%%* ^
99
|| exit /b 1
1010

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
ES_ADDITIONAL_CLASSPATH_DIRECTORIES=lib/tools/plugin-cli \
3+
ES_MAIN_CLASS=org.elasticsearch.plugins.PluginCli \
4+
ES_ADDITIONAL_CLASSPATH_DIRECTORIES=lib/tools/plugin-cli \
45
"`dirname "$0"`"/elasticsearch-cli \
5-
org.elasticsearch.plugins.PluginCli \
66
"$@"

distribution/src/bin/elasticsearch-plugin.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
setlocal enabledelayedexpansion
44
setlocal enableextensions
55

6+
set ES_MAIN_CLASS=org.elasticsearch.plugins.PluginCli
67
set ES_ADDITIONAL_CLASSPATH_DIRECTORIES=lib/tools/plugin-cli
78
call "%~dp0elasticsearch-cli.bat" ^
8-
org.elasticsearch.plugins.PluginCli ^
99
%%* ^
1010
|| exit /b 1
1111

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
22

3-
"`dirname "$0"`"/elasticsearch-cli \
4-
org.elasticsearch.index.translog.TranslogToolCli \
3+
ES_MAIN_CLASS=org.elasticsearch.index.translog.TranslogToolCli \
4+
"`dirname "$0"`"/elasticsearch-cli \
55
"$@"

distribution/src/bin/elasticsearch-translog.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
setlocal enabledelayedexpansion
44
setlocal enableextensions
55

6+
set ES_MAIN_CLASS=org.elasticsearch.index.translog.TranslogToolCli
67
call "%~dp0elasticsearch-cli.bat" ^
7-
org.elasticsearch.index.translog.TranslogToolCli ^
88
%%* ^
99
|| exit /b 1
1010

distribution/tools/launchers/build.gradle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,11 @@ import org.elasticsearch.gradle.precommit.PrecommitTasks
2121
import org.gradle.api.JavaVersion
2222

2323
apply plugin: 'elasticsearch.build'
24-
apply plugin: 'ru.vyarus.animalsniffer'
2524

2625
sourceCompatibility = JavaVersion.VERSION_1_7
2726
targetCompatibility = JavaVersion.VERSION_1_7
2827

2928
dependencies {
30-
signature "org.codehaus.mojo.signature:java17:1.0@signature"
31-
3229
testCompile "com.carrotsearch.randomizedtesting:randomizedtesting-runner:${versions.randomizedrunner}"
3330
testCompile "junit:junit:${versions.junit}"
3431
testCompile "org.hamcrest:hamcrest-all:${versions.hamcrest}"

0 commit comments

Comments
 (0)