Skip to content

Commit af608cc

Browse files
Merge remote-tracking branch 'elastic/master' into more-snapshot-resiliency-testing-2
2 parents ad53530 + 3fcfd60 commit af608cc

File tree

5 files changed

+8
-32
lines changed

5 files changed

+8
-32
lines changed

docs/plugins/plugin-script.asciidoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ The `plugin` script is used to install, list, and remove plugins. It is
55
located in the `$ES_HOME/bin` directory by default but it may be in a
66
different location depending on which Elasticsearch package you installed:
77

8-
* {ref}/zip-targz.html#zip-targz-layout[Directory layout of `.zip` and `.tar.gz` archives]
8+
* {ref}/targz.html#targz-layout[Directory layout of `.tar.gz` archives]
9+
* {ref}/zip-windows.html#windows-layout[Directory layout of Windows `.zip` archives]
910
* {ref}/deb.html#deb-layout[Directory layout of Debian package]
1011
* {ref}/rpm.html#rpm-layout[Directory layout of RPM]
1112

@@ -224,7 +225,8 @@ bin\elasticsearch-plugin install analysis-icu
224225

225226
The default location of the `plugins` directory depends on which package you install:
226227

227-
* {ref}/zip-targz.html#zip-targz-layout[Directory layout of `.zip` and `.tar.gz` archives]
228+
* {ref}/targz.html#targz-layout[Directory layout of `.tar.gz` archives]
229+
* {ref}/zip-windows.html#windows-layout[Directory layout of Windows `.zip` archives]
228230
* {ref}/deb.html#deb-layout[Directory layout of Debian package]
229231
* {ref}/rpm.html#rpm-layout[Directory layout of RPM]
230232

libs/x-content/src/test/java/org/elasticsearch/common/xcontent/XContentParserTests.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
package org.elasticsearch.common.xcontent;
2121

2222
import com.fasterxml.jackson.core.JsonParseException;
23-
2423
import org.elasticsearch.common.CheckedSupplier;
2524
import org.elasticsearch.common.Strings;
2625
import org.elasticsearch.common.bytes.BytesReference;
@@ -369,7 +368,6 @@ public void testSubParserObject() throws IOException {
369368
}
370369
}
371370

372-
@AwaitsFix(bugUrl="https://github.com/elastic/elasticsearch/issues/40617")
373371
public void testSubParserArray() throws IOException {
374372
XContentBuilder builder = XContentFactory.jsonBuilder();
375373
int numberOfArrayElements = randomInt(10);
@@ -378,7 +376,7 @@ public void testSubParserArray() throws IOException {
378376
builder.startArray();
379377
int numberOfTokens = 0;
380378
for (int i = 0; i < numberOfArrayElements; ++i) {
381-
numberOfTokens += generateRandomObjectForMarking(builder);
379+
numberOfTokens += generateRandomObject(builder, 0);
382380
}
383381
builder.endArray();
384382
builder.endObject();
@@ -392,7 +390,7 @@ public void testSubParserArray() throws IOException {
392390
assertEquals(XContentParser.Token.START_ARRAY, parser.nextToken()); // [
393391
XContentParser subParser = new XContentSubParser(parser);
394392
try {
395-
int tokensToSkip = randomInt(numberOfTokens - 1);
393+
int tokensToSkip = randomInt(numberOfTokens);
396394
for (int i = 0; i < tokensToSkip; i++) {
397395
// Simulate incomplete parsing
398396
assertNotNull(subParser.nextToken());

plugins/repository-hdfs/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ for (String fixtureName : ['hdfsFixture', 'haHdfsFixture', 'secureHdfsFixture',
7979
dependsOn project.configurations.hdfsFixture, project(':test:fixtures:krb5kdc-fixture').tasks.postProcessFixture
8080
executable = new File(project.runtimeJavaHome, 'bin/java')
8181
env 'CLASSPATH', "${ -> project.configurations.hdfsFixture.asPath }"
82+
onlyIf { project(':test:fixtures:krb5kdc-fixture').buildFixture.enabled }
8283
waitCondition = { fixture, ant ->
8384
// the hdfs.MiniHDFS fixture writes the ports file when
8485
// it's ready, so we can just wait for the file to exist

test/fixtures/hdfs-fixture/build.gradle

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,10 @@
1818
*/
1919

2020
apply plugin: 'elasticsearch.build'
21-
apply plugin: 'elasticsearch.test.fixtures'
2221

2322
dependencies {
2423
compile "org.apache.hadoop:hadoop-minicluster:2.8.1"
2524
}
2625

27-
task syncClasses(type: Sync) {
28-
from sourceSets.test.runtimeClasspath
29-
into "${buildDir}/fixture"
30-
}
31-
32-
preProcessFixture {
33-
dependsOn syncClasses
34-
35-
doLast {
36-
file("${buildDir}/shared").mkdirs()
37-
}
38-
}
39-
4026
unitTest.enabled = false
27+
thirdPartyAudit.enabled = false

test/fixtures/hdfs-fixture/docker-compose.yml

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

0 commit comments

Comments
 (0)