Skip to content

Commit 99597d1

Browse files
committed
Merge branch 'master' into primary-context
* master: (56 commits) Initialize max unsafe auto ID timestamp on shrink Enable a long translog retention policy by default (elastic#25294) Remove `index.mapping.single_type=false` from core/tests (elastic#25331) test: single type defaults to true since alpha1 and not alpha3 Get short path name for native controllers Live primary-replica resync (no rollback) (elastic#24841) Upgrade to lucene-7.0.0-snapshot-ad2cb77. (elastic#25349) percolator: Deprecate `document_type` parameter. [DOCS] Fixed typo. [rest-api-spec/indices.refresh] Remove old params Remove redundant and broken MD5 checksum from repository-s3 (elastic#25270) Initialize sequence numbers on a shrunken index Port most snapshot/restore static bwc tests to qa:full-cluster-restart (elastic#25296) Javadoc: ThreadPool doesn't reject while shutdown (elastic#23678) test: verify `size_to_upgrade_in_bytes` in assertBusy(...) Docs: Removed duplicated line in mapping docs Add backward compatibility indices for 5.4.2 Update MockTransportService to the age of Transport.Connection (elastic#25320) Add version v5.4.2 after release IndexMetaData: Add internal format index setting (elastic#25292) ...
2 parents d04f14a + 8dcb1f5 commit 99597d1

File tree

314 files changed

+5826
-3016
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

+5826
-3016
lines changed

benchmarks/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ apply plugin: 'com.github.johnrengelman.shadow'
3434
// have the shadow plugin provide the runShadow task
3535
apply plugin: 'application'
3636

37+
// Not published so no need to assemble
38+
tasks.remove(assemble)
39+
build.dependsOn.remove('assemble')
40+
3741
archivesBaseName = 'elasticsearch-benchmarks'
3842
mainClassName = 'org.openjdk.jmh.Main'
3943

build.gradle

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,3 +420,17 @@ task run(type: Run) {
420420
group = 'Verification'
421421
impliesSubProjects = true
422422
}
423+
424+
/* Remove assemble on all qa projects because we don't need to publish
425+
* artifacts for them. */
426+
gradle.projectsEvaluated {
427+
subprojects {
428+
if (project.path.startsWith(':qa')) {
429+
Task assemble = project.tasks.findByName('assemble')
430+
if (assemble) {
431+
project.tasks.remove(assemble)
432+
project.build.dependsOn.remove('assemble')
433+
}
434+
}
435+
}
436+
}

buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,11 @@ class BuildPlugin implements Plugin<Project> {
394394
project.tasks.withType(GenerateMavenPom.class) { GenerateMavenPom t ->
395395
// place the pom next to the jar it is for
396396
t.destination = new File(project.buildDir, "distributions/${project.archivesBaseName}-${project.version}.pom")
397-
// build poms with assemble
398-
project.assemble.dependsOn(t)
397+
// build poms with assemble (if the assemble task exists)
398+
Task assemble = project.tasks.findByName('assemble')
399+
if (assemble) {
400+
assemble.dependsOn(t)
401+
}
399402
}
400403
}
401404
}

buildSrc/src/main/groovy/org/elasticsearch/gradle/doc/DocsTestPlugin.groovy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ public class DocsTestPlugin extends RestTestPlugin {
3232
public void apply(Project project) {
3333
project.pluginManager.apply('elasticsearch.standalone-rest-test')
3434
super.apply(project)
35+
// Docs are published separately so no need to assemble
36+
project.tasks.remove(project.assemble)
37+
project.build.dependsOn.remove('assemble')
3538
Map<String, String> defaultSubstitutions = [
3639
/* These match up with the asciidoc syntax for substitutions but
3740
* the values may differ. In particular {version} needs to resolve

buildSrc/version.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# When updating elasticsearch, please update 'rest' version in core/src/main/resources/org/elasticsearch/bootstrap/test-framework.policy
22
elasticsearch = 6.0.0-alpha3
3-
lucene = 7.0.0-snapshot-92b1783
3+
lucene = 7.0.0-snapshot-ad2cb77
44

55
# optional dependencies
66
spatial4j = 0.6

client/benchmark/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ apply plugin: 'application'
3737

3838
group = 'org.elasticsearch.client'
3939

40+
// Not published so no need to assemble
41+
tasks.remove(assemble)
42+
build.dependsOn.remove('assemble')
43+
4044
archivesBaseName = 'client-benchmarks'
4145
mainClassName = 'org.elasticsearch.client.benchmark.BenchmarkMain'
4246

client/client-benchmark-noop-api-plugin/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,12 @@ esplugin {
2727
classname 'org.elasticsearch.plugin.noop.NoopPlugin'
2828
}
2929

30+
// Not published so no need to assemble
31+
tasks.remove(assemble)
32+
build.dependsOn.remove('assemble')
33+
3034
compileJava.options.compilerArgs << "-Xlint:-cast,-deprecation,-rawtypes,-try,-unchecked"
3135

3236
// no unit tests
3337
test.enabled = false
3438
integTest.enabled = false
35-

client/rest-high-level/src/main/java/org/elasticsearch/client/RestHighLevelClient.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,10 @@ protected <Req extends ActionRequest, Resp> Resp performRequest(Req request,
395395
try {
396396
return responseConverter.apply(e.getResponse());
397397
} catch (Exception innerException) {
398+
//the exception is ignored as we now try to parse the response as an error.
399+
//this covers cases like get where 404 can either be a valid document not found response,
400+
//or an error for which parsing is completely different. We try to consider the 404 response as a valid one
401+
//first. If parsing of the response breaks, we fall back to parsing it as an error.
398402
throw parseResponseException(e);
399403
}
400404
}

core/licenses/lucene-analyzers-common-7.0.0-snapshot-92b1783.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
00d3260223eac0405a82eeeb8439de0e5eb5f888

0 commit comments

Comments
 (0)