Skip to content

Commit 7d4a74e

Browse files
committed
Merge branch '6.x' into ccr-6.x
* 6.x: Test: Do not remove xpack templates when cleaning (#31642) SQL: Allow long literals (#31777) SQL: Fix incorrect message for aliases (#31792) Detach Transport from TransportService (#31727) 6.3.1 release notes (#31829) Add unreleased version 6.3.2 [ML][TEST] Use java 11 valid time format in DataDescriptionTests (#31817) [ML] Don't treat stale FAILED jobs as OPENING in job allocation (#31800) [ML] Fix calendar and filter updates from non-master nodes (#31804) Fix license header generation on Windows (#31790) mark XPackRestIT.test {p0=monitoring/bulk/10_basic/Bulk indexing of monitoring data} as AwaitsFix Add JDK11 support without enabling in CI (#31644) Watcher: Fix check for currently executed watches (#31137) [DOCS] Fixes 6.3.0 release notes (#31771) Watcher: Ensure correct method is used to read secure settings (#31753) [ML] Rate limit established model memory updates (#31768) SQL: Update CLI logo
2 parents 151d244 + 4c24e41 commit 7d4a74e

File tree

92 files changed

+1872
-873
lines changed

Some content is hidden

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

92 files changed

+1872
-873
lines changed

build.gradle

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,12 +439,19 @@ allprojects {
439439
}
440440

441441
File licenseHeaderFile;
442-
if (eclipse.project.name.startsWith(':x-pack')) {
442+
String prefix = ':x-pack';
443+
444+
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
445+
prefix = prefix.replace(':', '_')
446+
}
447+
if (eclipse.project.name.startsWith(prefix)) {
443448
licenseHeaderFile = new File(project.rootDir, 'buildSrc/src/main/resources/license-headers/elastic-license-header.txt')
444449
} else {
445450
licenseHeaderFile = new File(project.rootDir, 'buildSrc/src/main/resources/license-headers/oss-license-header.txt')
446451
}
447-
String licenseHeader = licenseHeaderFile.getText('UTF-8').replace('\n', '\\\\n')
452+
453+
String lineSeparator = Os.isFamily(Os.FAMILY_WINDOWS) ? '\\\\r\\\\n' : '\\\\n'
454+
String licenseHeader = licenseHeaderFile.getText('UTF-8').replace(System.lineSeparator(), lineSeparator)
448455
task copyEclipseSettings(type: Copy) {
449456
// TODO: "package this up" for external builds
450457
from new File(project.rootDir, 'buildSrc/src/main/resources/eclipse.settings')

buildSrc/src/main/resources/forbidden/jdk-signatures.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ java.lang.Thread#getAllStackTraces()
8888

8989
@defaultMessage Stopping threads explicitly leads to inconsistent states. Use interrupt() instead.
9090
java.lang.Thread#stop()
91-
java.lang.Thread#stop(java.lang.Throwable)
91+
# uncomment when https://github.com/elastic/elasticsearch/issues/31715 is fixed
92+
# java.lang.Thread#stop(java.lang.Throwable)
9293

9394
@defaultMessage Please do not terminate the application
9495
java.lang.System#exit(int)

distribution/bwc/build.gradle

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@
1818
*/
1919

2020

21+
2122
import org.apache.tools.ant.taskdefs.condition.Os
2223
import org.elasticsearch.gradle.LoggedExec
2324
import org.elasticsearch.gradle.Version
2425

25-
import static org.elasticsearch.gradle.BuildPlugin.getJavaHome
26+
import java.nio.charset.StandardCharsets
2627

28+
import static org.elasticsearch.gradle.BuildPlugin.getJavaHome
2729
/**
2830
* This is a dummy project which does a local checkout of the previous
2931
* version's branch, and builds a snapshot. This allows backcompat
@@ -147,12 +149,16 @@ subprojects {
147149

148150
task buildBwcVersion(type: Exec) {
149151
dependsOn checkoutBwcBranch, writeBuildMetadata
152+
// send RUNTIME_JAVA_HOME so the build doesn't fails on newer version the branch doesn't know about
153+
environment('RUNTIME_JAVA_HOME', getJavaHome(it, rootProject.ext.minimumRuntimeVersion.getMajorVersion() as int))
150154
workingDir = checkoutDir
155+
// we are building branches that are officially built with JDK 8, push JAVA8_HOME to JAVA_HOME for these builds
151156
if (["5.6", "6.0", "6.1"].contains(bwcBranch)) {
152-
// we are building branches that are officially built with JDK 8, push JAVA8_HOME to JAVA_HOME for these builds
153157
environment('JAVA_HOME', getJavaHome(it, 8))
154158
} else if ("6.2".equals(bwcBranch)) {
155159
environment('JAVA_HOME', getJavaHome(it, 9))
160+
} else if (["6.3", "6.x"].contains(bwcBranch)) {
161+
environment('JAVA_HOME', getJavaHome(it, 10))
156162
} else {
157163
environment('JAVA_HOME', project.compilerJavaHome)
158164
}
@@ -177,6 +183,8 @@ subprojects {
177183
} else if (showStacktraceName.equals("ALWAYS_FULL")) {
178184
args "--full-stacktrace"
179185
}
186+
standardOutput = new IndentingOutputStream(System.out)
187+
errorOutput = new IndentingOutputStream(System.err)
180188
doLast {
181189
List missing = artifactFiles.grep { file ->
182190
false == file.exists()
@@ -196,3 +204,27 @@ subprojects {
196204
}
197205
}
198206
}
207+
208+
class IndentingOutputStream extends OutputStream {
209+
210+
public static final byte[] INDENT = " [bwc] ".getBytes(StandardCharsets.UTF_8)
211+
private final OutputStream delegate
212+
213+
public IndentingOutputStream(OutputStream delegate) {
214+
this.delegate = delegate
215+
}
216+
217+
@Override
218+
public void write(int b) {
219+
write([b] as int[], 0, 1)
220+
}
221+
222+
public void write(int[] bytes, int offset, int length) {
223+
for (int i = 0; i < bytes.length; i++) {
224+
delegate.write(bytes[i])
225+
if (bytes[i] == '\n') {
226+
delegate.write(INDENT)
227+
}
228+
}
229+
}
230+
}

docs/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ integTestCluster {
3939
setting 'reindex.remote.whitelist', '127.0.0.1:*'
4040
}
4141

42+
// remove when https://github.com/elastic/elasticsearch/issues/31305 is fixed
43+
if (rootProject.ext.compilerJavaVersion.isJava11()) {
44+
integTestRunner {
45+
systemProperty 'tests.rest.blacklist', [
46+
'plugins/ingest-attachment/line_164',
47+
'plugins/ingest-attachment/line_117'
48+
].join(',')
49+
}
50+
}
4251
// Build the cluster with all plugins
4352

4453
project.rootProject.subprojects.findAll { it.parent.path == ':plugins' }.each { subproj ->

docs/reference/release-notes/6.3.asciidoc

Lines changed: 52 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,57 @@
11
[[release-notes-6.3.1]]
22
== {es} version 6.3.1
33

4-
coming[6.3.1]
4+
Also see <<breaking-changes-6.3>>.
5+
6+
[[bug-6.3.1]]
7+
[float]
8+
=== Bug fixes
9+
10+
Authentication::
11+
* Security: fix joining cluster with production license {pull}31341[#31341] (issue: {issue}31332[#31332])
12+
* Security: fix token bwc with pre 6.0.0-beta2 {pull}31254[#31254] (issues: {issue}30743[#30743], {issue}31195[#31195])
13+
* Compliant SAML Response destination check {pull}31175[#31175]
14+
15+
Ingest::
16+
* Ingest Attachment: Upgrade Tika to 1.18 {pull}31252[#31252]
17+
18+
Java High Level REST Client::
19+
* Change bulk's retry condition to be based on RestStatus {pull}29329[#29329] (issues: {issue}28885[#28885], {issue}29254[#29254])
20+
21+
Java Low Level REST Client::
22+
* Avoid setting connection request timeout {pull}30384[#30384] (issue: {issue}24069[#24069])
23+
24+
Machine Learning::
25+
* Fixes a bug introduced in 6.3.0 which may cause the a node to hang and drop out of the cluster if Machine Learning is enabled and has been actively used. The issue can be redressed in 6.3.0 by disabling Machine Learning on all nodes {pull}31691[#31691] (issue: {issue}31683[#31683])
26+
27+
Network::
28+
* Ensure we don't use a remote profile if cluster name matches {pull}31331[#31331] (issue: {issue}29321[#29321])
29+
30+
Packaging::
31+
* Add package pre-install check for java binary {pull}31343[#31343] (issue: {issue}29665[#29665])
32+
33+
Recovery::
34+
* Fix missing historyUUID in peer recovery when rolling upgrade 5.x to 6.3 {pull}31506[#31506] (issue: {issue}31482[#31482])
35+
36+
Rollup::
37+
* [Rollup] Metric config parser must use builder so validation runs {pull}31159[#31159]
38+
39+
SQL::
40+
* JDBC: Fix stackoverflow on getObject and timestamp conversion {pull}31735[#31735] (issue: {issue}31734[#31734])
41+
* SQL: Preserve scoring in bool queries {pull}30730[#30730] (issue: {issue}29685[#29685])
42+
43+
Scripting::
44+
* Painless: Fix bug for static method calls on interfaces {pull}31348[#31348]
45+
46+
Search::
47+
* Fix race in clear scroll {pull}31259[#31259]
48+
* Cross Cluster Search: preserve remote status code {pull}30976[#30976] (issue: {issue}27461[#27461])
49+
50+
Security::
51+
* Preserve thread context when connecting to remote cluster {pull}31574[#31574] (issues: {issue}31241[#31241], {issue}31462[#31462])
52+
53+
Watcher::
54+
* Watcher: Fix put watch action {pull}31524[#31524]
555

656
[[release-notes-6.3.0]]
757
== {es} version 6.3.0
@@ -93,9 +143,6 @@ Aggregations::
93143
* Adds the ability to specify a format on composite date_histogram source {pull}28310[#28310] (issue: {issue}27923[#27923])
94144
* Calculate sum in Kahan summation algorithm in aggregations (#27807) {pull}27848[#27848] (issue: {issue}27807[#27807])
95145

96-
Discovery-Plugins::
97-
* Update ec2 secure settings {pull}29134[#29134]
98-
99146
Geo::
100147
* Add Z value support to geo_point and geo_shape {pull}25738[#25738] (issue: {issue}22917[#22917])
101148

@@ -124,9 +171,6 @@ Scripting::
124171
Search::
125172
* Search - new flag: allow_partial_search_results {pull}27906[#27906] (issue: {issue}27435[#27435])
126173

127-
Snapshot/Restore::
128-
* Update s3 secure settings {pull}28517[#28517]
129-
130174
Task Management::
131175
* Add new setting to disable persistent tasks allocations {pull}29137[#29137]
132176

@@ -403,7 +447,7 @@ License::
403447
* Do not serialize basic license exp in x-pack info {pull}30848[#30848]
404448
* Require acknowledgement to start_trial license {pull}30198[#30198] (issue: {issue}30134[#30134])
405449

406-
Machine Learning::
450+
Machine Learning::
407451
* By-fields should respect model_plot_config.terms {ml-pull}86[#86] (issue: {issue}30004[#30004])
408452
* Function description for population lat_long results should be lat_long instead of mean {ml-pull}81[#81] (issue: {ml-issue}80[#80])
409453
* Fix error causing us to overestimate effective history length {ml-pull}66[#66] (issue: {ml-issue}57[#57])

modules/lang-painless/src/test/java/org/elasticsearch/painless/ArrayTests.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
package org.elasticsearch.painless;
2121

2222
import org.apache.lucene.util.Constants;
23+
import org.elasticsearch.bootstrap.JavaVersion;
2324
import org.hamcrest.Matcher;
2425

2526
import java.lang.invoke.MethodHandle;
@@ -41,7 +42,11 @@ protected String valueCtorCall(String valueType, int size) {
4142

4243
@Override
4344
protected Matcher<String> outOfBoundsExceptionMessageMatcher(int index, int size) {
44-
return equalTo(Integer.toString(index));
45+
if (JavaVersion.current().compareTo(JavaVersion.parse("11")) < 0) {
46+
return equalTo(Integer.toString(index));
47+
} else{
48+
return equalTo("Index " + Integer.toString(index) + " out of bounds for length " + Integer.toString(size));
49+
}
4550
}
4651

4752
public void testArrayLengthHelper() throws Throwable {

modules/transport-netty4/src/test/java/org/elasticsearch/transport/netty4/Netty4ScheduledPingTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public void testScheduledPing() throws Exception {
8888
assertThat(nettyA.getPing().getFailedPings(), equalTo(0L));
8989
assertThat(nettyB.getPing().getFailedPings(), equalTo(0L));
9090

91-
serviceA.registerRequestHandler("sayHello", TransportRequest.Empty::new, ThreadPool.Names.GENERIC,
91+
serviceA.registerRequestHandler("internal:sayHello", TransportRequest.Empty::new, ThreadPool.Names.GENERIC,
9292
new TransportRequestHandler<TransportRequest.Empty>() {
9393
@Override
9494
public void messageReceived(TransportRequest.Empty request, TransportChannel channel) {
@@ -103,7 +103,7 @@ public void messageReceived(TransportRequest.Empty request, TransportChannel cha
103103

104104
int rounds = scaledRandomIntBetween(100, 5000);
105105
for (int i = 0; i < rounds; i++) {
106-
serviceB.submitRequest(nodeA, "sayHello",
106+
serviceB.submitRequest(nodeA, "internal:sayHello",
107107
TransportRequest.Empty.INSTANCE, TransportRequestOptions.builder().withCompress(randomBoolean()).build(),
108108
new TransportResponseHandler<TransportResponse.Empty>() {
109109
@Override

plugins/ingest-attachment/build.gradle

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,21 @@ esplugin {
2525
versions << [
2626
'tika': '1.18',
2727
'pdfbox': '2.0.9',
28-
'bouncycastle': '1.55',
28+
'bouncycastle': '1.59',
2929
'poi': '3.17',
3030
'mime4j': '0.8.1'
3131
]
3232

33+
if (rootProject.ext.compilerJavaVersion.isJava11()) {
34+
// disabled until https://github.com/elastic/elasticsearch/issues/31456 is fixed.
35+
integTestRunner {
36+
systemProperty 'tests.rest.blacklist', [
37+
'ingest_attachment/20_attachment_processor/Test indexed chars are configurable',
38+
'ingest_attachment/20_attachment_processor/Test indexed chars are configurable per document'
39+
].join(',')
40+
}
41+
}
42+
3343
dependencies {
3444
// mandatory for tika
3545
compile "org.apache.tika:tika-core:${versions.tika}"

plugins/ingest-attachment/licenses/bcmail-jdk15on-1.55.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+
db389ade95f48592908a84e7050a691c8834723c

0 commit comments

Comments
 (0)