Skip to content

Commit 8ed3624

Browse files
committed
Merge remote-tracking branch 'es/master' into ccr
* es/master: (23 commits) Switch full-cluster-restart to new style Requests (#32140) [DOCS] Clarified that you must remove X-Pack plugin when upgrading from pre-6.3. (#32016) Remove BouncyCastle dependency from runtime (#32193) INGEST: Extend KV Processor (#31789) (#32232) INGEST: Make a few Processors callable by Painless (#32170) Add region ISO code to GeoIP Ingest plugin (#31669) [Tests] Remove QueryStringQueryBuilderTests#toQuery class assertions (#32236) Make sure that field aliases count towards the total fields limit. (#32222) Switch rolling restart to new style Requests (#32147) muting failing test for internal auto date histogram to avoid failure before fix is merged MINOR: Remove unused `IndexDynamicSettings` (#32237) Fix multi level nested sort (#32204) Enhance Parent circuit breaker error message (#32056) [ML] Use default request durability for .ml-state index (#32233) Remove indices stats timeout from monitoring docs Rename ranking evaluation response section (#32166) Dependencies: Upgrade to joda time 2.10 (#32160) Remove aliases resolution limitations when security is enabled (#31952) Ensure that field aliases cannot be used in multi-fields. (#32219) TESTS: Check for Netty resource leaks (#31861) ...
2 parents 8e15504 + 042424b commit 8ed3624

File tree

114 files changed

+2235
-756
lines changed

Some content is hidden

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

114 files changed

+2235
-756
lines changed

buildSrc/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ plugins {
2525

2626
group = 'org.elasticsearch.gradle'
2727

28-
if (GradleVersion.current() < GradleVersion.version('3.3')) {
29-
throw new GradleException('Gradle 3.3+ is required to build elasticsearch')
28+
if (GradleVersion.current() < GradleVersion.version('4.9')) {
29+
throw new GradleException('Gradle 4.9+ is required to build elasticsearch')
3030
}
3131

3232
if (JavaVersion.current() < JavaVersion.VERSION_1_8) {

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ class BuildPlugin implements Plugin<Project> {
6767
+ 'elasticearch.standalone-rest-test, and elasticsearch.build '
6868
+ 'are mutually exclusive')
6969
}
70+
if (GradleVersion.current() < GradleVersion.version('4.9')) {
71+
throw new GradleException('Gradle 4.9+ is required to use elasticsearch.build plugin')
72+
}
7073
project.pluginManager.apply('java')
7174
project.pluginManager.apply('carrotsearch.randomized-testing')
7275
// these plugins add lots of info to our jars

client/rest-high-level/src/test/java/org/elasticsearch/client/RankEvalIT.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
import java.util.stream.Collectors;
4141
import java.util.stream.Stream;
4242

43-
import static org.elasticsearch.index.rankeval.EvaluationMetric.filterUnknownDocuments;
43+
import static org.elasticsearch.index.rankeval.EvaluationMetric.filterUnratedDocuments;
4444

4545
public class RankEvalIT extends ESRestHighLevelClientTestCase {
4646

@@ -84,7 +84,7 @@ public void testRankEvalRequest() throws IOException {
8484
Map<String, EvalQueryQuality> partialResults = response.getPartialResults();
8585
assertEquals(2, partialResults.size());
8686
EvalQueryQuality amsterdamQueryQuality = partialResults.get("amsterdam_query");
87-
assertEquals(2, filterUnknownDocuments(amsterdamQueryQuality.getHitsAndRatings()).size());
87+
assertEquals(2, filterUnratedDocuments(amsterdamQueryQuality.getHitsAndRatings()).size());
8888
List<RatedSearchHit> hitsAndRatings = amsterdamQueryQuality.getHitsAndRatings();
8989
assertEquals(7, hitsAndRatings.size());
9090
for (RatedSearchHit hit : hitsAndRatings) {
@@ -96,7 +96,7 @@ public void testRankEvalRequest() throws IOException {
9696
}
9797
}
9898
EvalQueryQuality berlinQueryQuality = partialResults.get("berlin_query");
99-
assertEquals(6, filterUnknownDocuments(berlinQueryQuality.getHitsAndRatings()).size());
99+
assertEquals(6, filterUnratedDocuments(berlinQueryQuality.getHitsAndRatings()).size());
100100
hitsAndRatings = berlinQueryQuality.getHitsAndRatings();
101101
assertEquals(7, hitsAndRatings.size());
102102
for (RatedSearchHit hit : hitsAndRatings) {

distribution/archives/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ CopySpec archiveFiles(CopySpec modulesFiles, String distributionType, boolean os
4949
return copySpec {
5050
into("elasticsearch-${version}") {
5151
into('lib') {
52-
with libFiles
52+
with libFiles(oss)
5353
}
5454
into('config') {
5555
dirMode 0750

distribution/build.gradle

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -227,16 +227,24 @@ configure(subprojects.findAll { ['archives', 'packages'].contains(it.name) }) {
227227
/*****************************************************************************
228228
* Common files in all distributions *
229229
*****************************************************************************/
230-
libFiles = copySpec {
231-
// delay by using closures, since they have not yet been configured, so no jar task exists yet
232-
from { project(':server').jar }
233-
from { project(':server').configurations.runtime }
234-
from { project(':libs:plugin-classloader').jar }
235-
from { project(':distribution:tools:java-version-checker').jar }
236-
from { project(':distribution:tools:launchers').jar }
237-
into('tools/plugin-cli') {
238-
from { project(':distribution:tools:plugin-cli').jar }
239-
from { project(':distribution:tools:plugin-cli').configurations.runtime }
230+
libFiles = { oss ->
231+
copySpec {
232+
// delay by using closures, since they have not yet been configured, so no jar task exists yet
233+
from { project(':server').jar }
234+
from { project(':server').configurations.runtime }
235+
from { project(':libs:plugin-classloader').jar }
236+
from { project(':distribution:tools:java-version-checker').jar }
237+
from { project(':distribution:tools:launchers').jar }
238+
into('tools/plugin-cli') {
239+
from { project(':distribution:tools:plugin-cli').jar }
240+
from { project(':distribution:tools:plugin-cli').configurations.runtime }
241+
}
242+
if (oss == false) {
243+
into('tools/security-cli') {
244+
from { project(':x-pack:plugin:security:cli').jar }
245+
from { project(':x-pack:plugin:security:cli').configurations.compile }
246+
}
247+
}
240248
}
241249
}
242250

distribution/packages/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Closure commonPackageConfig(String type, boolean oss) {
126126
}
127127
into('lib') {
128128
with copySpec {
129-
with libFiles
129+
with libFiles(oss)
130130
// we need to specify every intermediate directory so we iterate through the parents; duplicate calls with the same part are fine
131131
eachFile { FileCopyDetails fcp ->
132132
String[] segments = fcp.relativePath.segments

docs/plugins/ingest-geoip.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ include::install_remove.asciidoc[]
2626
| `field` | yes | - | The field to get the ip address from for the geographical lookup.
2727
| `target_field` | no | geoip | The field that will hold the geographical information looked up from the Maxmind database.
2828
| `database_file` | no | GeoLite2-City.mmdb | The database filename in the geoip config directory. The ingest-geoip plugin ships with the GeoLite2-City.mmdb, GeoLite2-Country.mmdb and GeoLite2-ASN.mmdb files.
29-
| `properties` | no | [`continent_name`, `country_iso_code`, `region_name`, `city_name`, `location`] * | Controls what properties are added to the `target_field` based on the geoip lookup.
29+
| `properties` | no | [`continent_name`, `country_iso_code`, `region_iso_code`, `region_name`, `city_name`, `location`] * | Controls what properties are added to the `target_field` based on the geoip lookup.
3030
| `ignore_missing` | no | `false` | If `true` and `field` does not exist, the processor quietly exits without modifying the document
3131
|======
3232

3333
*Depends on what is available in `database_field`:
3434

3535
* If the GeoLite2 City database is used, then the following fields may be added under the `target_field`: `ip`,
36-
`country_iso_code`, `country_name`, `continent_name`, `region_name`, `city_name`, `timezone`, `latitude`, `longitude`
36+
`country_iso_code`, `country_name`, `continent_name`, `region_iso_code`, `region_name`, `city_name`, `timezone`, `latitude`, `longitude`
3737
and `location`. The fields actually added depend on what has been found and which properties were configured in `properties`.
3838
* If the GeoLite2 Country database is used, then the following fields may be added under the `target_field`: `ip`,
3939
`country_iso_code`, `country_name` and `continent_name`. The fields actually added depend on what has been found and which properties

docs/reference/ingest/ingest-node.asciidoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1732,6 +1732,10 @@ For example, if you have a log message which contains `ip=1.2.3.4 error=REFUSED`
17321732
| `include_keys` | no | `null` | List of keys to filter and insert into document. Defaults to including all keys
17331733
| `exclude_keys` | no | `null` | List of keys to exclude from document
17341734
| `ignore_missing` | no | `false` | If `true` and `field` does not exist or is `null`, the processor quietly exits without modifying the document
1735+
| `prefix` | no | `null` | Prefix to be added to extracted keys
1736+
| `trim_key` | no | `null` | String of characters to trim from extracted keys
1737+
| `trim_value` | no | `null` | String of characters to trim from extracted values
1738+
| `strip_brackets` | no | `false` | If `true` strip brackets `()`, `<>`, `[]` as well as quotes `'` and `"` from extracted values
17351739
|======
17361740

17371741

docs/reference/mapping/types/alias.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ field alias to query over multiple target fields in a single clause.
7474
==== Unsupported APIs
7575

7676
Writes to field aliases are not supported: attempting to use an alias in an index or update request
77-
will result in a failure. Likewise, aliases cannot be used as the target of `copy_to`.
77+
will result in a failure. Likewise, aliases cannot be used as the target of `copy_to` or in multi-fields.
7878

7979
Because alias names are not present in the document source, aliases cannot be used when performing
8080
source filtering. For example, the following request will return an empty result for `_source`:

docs/reference/migration/migrate_7_0/api.asciidoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,11 @@ the only behavior in 8.0.0, this parameter is deprecated in 7.0.0 for removal in
7979
==== The deprecated stored script contexts have now been removed
8080
When putting stored scripts, support for storing them with the deprecated `template` context or without a context is
8181
now removed. Scripts must be stored using the `script` context as mentioned in the documentation.
82+
83+
==== Get Aliases API limitations when {security} is enabled removed
84+
85+
The behavior and response codes of the get aliases API no longer vary
86+
depending on whether {security} is enabled. Previously a
87+
404 - NOT FOUND (IndexNotFoundException) could be returned in case the
88+
current user was not authorized for any alias. An empty response with
89+
status 200 - OK is now returned instead at all times.

0 commit comments

Comments
 (0)