Skip to content

Commit 4ff6c79

Browse files
committed
Merge branch 'master' into feature/searchable-snapshots
2 parents cd72774 + 3d79624 commit 4ff6c79

File tree

281 files changed

+5629
-5840
lines changed

Some content is hidden

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

281 files changed

+5629
-5840
lines changed

.ci/java-versions.properties

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,3 @@
77
ES_BUILD_JAVA=openjdk13
88
ES_RUNTIME_JAVA=openjdk11
99
GRADLE_TASK=build
10-
11-
# Workaround for https://github.com/gradle/gradle/issues/11426
12-
OPENSHIFT_IP=0.0.0.0

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ subprojects {
107107
// switched to an exclude list, and eventualy removed completely.
108108
def projectPathsToFormat = [
109109
':build-tools',
110+
':x-pack:plugin:autoscaling',
110111
':x-pack:plugin:enrich'
111112
]
112113

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.0.1
1+
6.1

buildSrc/src/test/java/org/elasticsearch/gradle/BuildPluginIT.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import java.io.InputStream;
3232
import java.nio.charset.StandardCharsets;
3333
import java.nio.file.Files;
34+
import java.nio.file.Path;
3435
import java.util.Arrays;
3536
import java.util.List;
3637
import java.util.zip.ZipEntry;
@@ -84,7 +85,16 @@ public void testInsecureIvyRepository() throws IOException {
8485

8586
private void runInsecureArtifactRepositoryTest(final String name, final String url, final List<String> lines) throws IOException {
8687
final File projectDir = getProjectDir("elasticsearch.build");
87-
FileUtils.copyDirectory(projectDir, tmpDir.getRoot(), pathname -> pathname.getPath().contains("/build/") == false);
88+
final Path projectDirPath = projectDir.toPath();
89+
FileUtils.copyDirectory(projectDir, tmpDir.getRoot(), file -> {
90+
final Path relativePath = projectDirPath.relativize(file.toPath());
91+
for (Path segment : relativePath) {
92+
if (segment.toString().equals("build")) {
93+
return false;
94+
}
95+
}
96+
return true;
97+
});
8898
final List<String> buildGradleLines = Files.readAllLines(tmpDir.getRoot().toPath().resolve("build.gradle"), StandardCharsets.UTF_8);
8999
buildGradleLines.addAll(lines);
90100
Files.write(tmpDir.getRoot().toPath().resolve("build.gradle"), buildGradleLines, StandardCharsets.UTF_8);

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

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import org.elasticsearch.action.admin.indices.delete.DeleteIndexRequest;
2828
import org.elasticsearch.action.admin.indices.flush.FlushRequest;
2929
import org.elasticsearch.action.admin.indices.flush.FlushResponse;
30-
import org.elasticsearch.action.admin.indices.flush.SyncedFlushRequest;
3130
import org.elasticsearch.action.admin.indices.forcemerge.ForceMergeRequest;
3231
import org.elasticsearch.action.admin.indices.forcemerge.ForceMergeResponse;
3332
import org.elasticsearch.action.admin.indices.open.OpenIndexRequest;
@@ -415,41 +414,6 @@ public Cancellable flushAsync(FlushRequest flushRequest, RequestOptions options,
415414
FlushResponse::fromXContent, listener, emptySet());
416415
}
417416

418-
/**
419-
* Initiate a synced flush manually using the synced flush API.
420-
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush-api.html">
421-
* Synced flush API on elastic.co</a>
422-
* @param syncedFlushRequest the request
423-
* @param options the request options (e.g. headers), use {@link RequestOptions#DEFAULT} if nothing needs to be customized
424-
* @return the response
425-
* @throws IOException in case there is a problem sending the request or parsing back the response
426-
* @deprecated synced flush is deprecated and will be removed in 8.0.
427-
* Use {@link #flush(FlushRequest, RequestOptions)} instead.
428-
*/
429-
@Deprecated
430-
public SyncedFlushResponse flushSynced(SyncedFlushRequest syncedFlushRequest, RequestOptions options) throws IOException {
431-
return restHighLevelClient.performRequestAndParseEntity(syncedFlushRequest, IndicesRequestConverters::flushSynced, options,
432-
SyncedFlushResponse::fromXContent, emptySet());
433-
}
434-
435-
/**
436-
* Asynchronously initiate a synced flush manually using the synced flush API.
437-
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush-api.html">
438-
* Synced flush API on elastic.co</a>
439-
* @param syncedFlushRequest the request
440-
* @param options the request options (e.g. headers), use {@link RequestOptions#DEFAULT} if nothing needs to be customized
441-
* @param listener the listener to be notified upon request completion
442-
* @return cancellable that may be used to cancel the request
443-
* @deprecated synced flush is deprecated and will be removed in 8.0.
444-
* Use {@link #flushAsync(FlushRequest, RequestOptions, ActionListener)} instead.
445-
*/
446-
@Deprecated
447-
public Cancellable flushSyncedAsync(SyncedFlushRequest syncedFlushRequest, RequestOptions options,
448-
ActionListener<SyncedFlushResponse> listener) {
449-
return restHighLevelClient.performRequestAsyncAndParseEntity(syncedFlushRequest, IndicesRequestConverters::flushSynced, options,
450-
SyncedFlushResponse::fromXContent, listener, emptySet());
451-
}
452-
453417
/**
454418
* Retrieve the settings of one or more indices.
455419
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-settings.html">

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import org.elasticsearch.action.admin.indices.cache.clear.ClearIndicesCacheRequest;
3030
import org.elasticsearch.action.admin.indices.delete.DeleteIndexRequest;
3131
import org.elasticsearch.action.admin.indices.flush.FlushRequest;
32-
import org.elasticsearch.action.admin.indices.flush.SyncedFlushRequest;
3332
import org.elasticsearch.action.admin.indices.forcemerge.ForceMergeRequest;
3433
import org.elasticsearch.action.admin.indices.open.OpenIndexRequest;
3534
import org.elasticsearch.action.admin.indices.refresh.RefreshRequest;
@@ -194,15 +193,6 @@ static Request flush(FlushRequest flushRequest) {
194193
return request;
195194
}
196195

197-
static Request flushSynced(SyncedFlushRequest syncedFlushRequest) {
198-
String[] indices = syncedFlushRequest.indices() == null ? Strings.EMPTY_ARRAY : syncedFlushRequest.indices();
199-
Request request = new Request(HttpPost.METHOD_NAME, RequestConverters.endpoint(indices, "_flush/synced"));
200-
RequestConverters.Params parameters = new RequestConverters.Params();
201-
parameters.withIndicesOptions(syncedFlushRequest.indicesOptions());
202-
request.addParameters(parameters.asMap());
203-
return request;
204-
}
205-
206196
static Request forceMerge(ForceMergeRequest forceMergeRequest) {
207197
String[] indices = forceMergeRequest.indices() == null ? Strings.EMPTY_ARRAY : forceMergeRequest.indices();
208198
Request request = new Request(HttpPost.METHOD_NAME, RequestConverters.endpoint(indices, "_forcemerge"));

0 commit comments

Comments
 (0)