22392 Commits

Author SHA1 Message Date
Robert Muir
915ab16176 First steps at whitelist cleanup 2016-05-19 09:29:48 -04:00
Ali Beyad
fc6df23fea Rename AggregatorBuilder and all of its subclasses to
AggregationBuilder, in keeping consistent with the Java APIs.

Closes 
Closes 
2016-05-19 09:25:29 -04:00
Tanguy Leroux
35d3bdab84 Add Google Cloud Storage repository plugin
Closes 
2016-05-19 13:26:23 +02:00
Martijn van Groningen
e2691d7e5c test: Don't generate a value of 0, because FuzzyQuery constructor does't allow that 2016-05-19 13:08:30 +02:00
Martijn van Groningen
050145f61b parent/child: Allow adding additional child types that point to an existing parent type
From 2.0 adding child types to existing types was forbidden because the`_parent` field stores the join between parent and child at index time.
This is to protect from the fact that types that weren't a parent before become a parent while previously indexed documents would not have a join field.
 This would break the parent/child queries.

The restriction was a bit too strict in the sense that also if a type was a parent type the restriction would forbid adding child types that point to a parent type (so child points already point to it).
This change make sure that the restriction only applies if that type isn't a parent type already.

Closes 
2016-05-19 11:05:17 +02:00
Simon Willnauer
d77c299cb9 Register indices.query.bool.max_clause_count setting ()
* Register `indices.query.bool.max_clause_count` setting

This commit registers `indices.query.bool.max_clause_count` as a node
level setting and removes support for its synonym setting
`index.query.bool.max_clause_count`.

Closes 
2016-05-19 10:42:35 +02:00
Isabel Drost-Fromm
072eb99c5a Merge pull request from MaineC/docs/add_console_to_search_request_options
Docs/add console to search request options
2016-05-19 09:54:44 +02:00
Simon Willnauer
2b972f1f75 FSync translog outside of the writers global lock ()
FSync translog outside of the writers global lock

Today we aquire a write global lock that blocks all modification to the
translog file while we fsync / checkpoint the file. Yet, we don't necessarily
needt to block concurrent operations here. This can lead to a lot of blocked
threads if the machine has high concurrency (lot os CPUs) but uses slow disks
(spinning disks) which is absolutely unnecessary. We just need to protect from
fsyncing / checkpointing concurrently but we can fill buffers and write to the
underlying file in a concurrent fashion.

This change introduces an additional lock that we hold while fsyncing but moves
the checkpointing code outside of the writers global lock.
2016-05-19 09:40:10 +02:00
Isabel Drost-Fromm
27e6908c8d Add indent 2016-05-19 09:33:29 +02:00
Isabel Drost-Fromm
bf471c6950 Merge branch 'master' into docs/add_console_to_search_request_options 2016-05-19 09:32:46 +02:00
Simon Willnauer
7650ea04f3 Merge pull request from s1monw/remove_bloom
Remove dead BloomFilter code
2016-05-19 09:19:05 +02:00
Simon Willnauer
9a9301f7d8 Remove dead BloomFilter code
We don't use this class for a quite a while. lets trash it.
2016-05-18 23:00:57 +02:00
Nik Everett
ee4e470f60 Add a wait_for_stats=yellow to a docs snippet
It was making unstable tests.
2016-05-18 15:11:49 -04:00
Isabel Drost-Fromm
9d2a3c0600 Merge pull request from MaineC/docs/add_console_to_fromsize
Add CONSOLE to from/size docs
2016-05-18 18:38:41 +02:00
Jason Tedor
6e3b49c522 Fix inequality symbol in test assertion
This commit fixes the inequality symbol used in a test assertion in
RepositoryS3SettingsTests#testInvalidChunkBufferSizeRepositorySettings. The
inequality symbol was previously backwards but fixed in commit
cad0608cdb28e2b8485e5c01c26579a35cb84356 but fixing the inequality
symbol here was missed in that commit.

Closes 
2016-05-18 12:14:37 -04:00
Clinton Gormley
cec9a94b96 Added version 2.3.3 with bwc indices 2016-05-18 17:33:21 +02:00
Christoph Büscher
7c665a010b Fix TimeZoneRounding#nextRoundingValue for hour, minute and second units
Currently rounding intervals obtained by nextRoundingValue() for hour, minute and
second units can include an extra hour when happening at DST transitions that add
an extra hour (eg CEST -> CET). This changes the rounding logic for time units
smaller or equal to an hour to fix this.

Closes 
2016-05-18 17:29:02 +02:00
David Pilato
9b247f9828 Fix remove of azure files
Probably when we updated Azure SDK, we introduced a regression.
Actually, we are not able to remove files anymore.

For example, if you register a new azure repository, the snapshot service tries to create a temp file and then remove it.
Removing does not work and you can see in logs:

```
[2016-05-18 11:03:24,914][WARN ][org.elasticsearch.cloud.azure.blobstore] [azure] can not remove [tests-ilmRPJ8URU-sh18yj38O6g/] in container {elasticsearch-snapshots}: The specified blob does not exist.
```

This fix deals with that. It now list all the files in a flatten mode, remove in the full URL the server and the container name.

As an example, when you are removing a blob which full name is `https://dpi24329.blob.core.windows.net/elasticsearch-snapshots/bar/test` you need to actually call Azure SDK with `bar/test` as the path, `elasticsearch-snapshots` is the container.

To run the test, you need to pass some parameters: `-Dtests.thirdparty=true -Dtests.config=/path/to/elasticsearch.yml`

Where `elasticsearch.yml` contains something like:

```
cloud.azure.storage.default.account: account
cloud.azure.storage.default.key: key
```

Related to 
Closes .
2016-05-18 17:23:33 +02:00
markharwood
a846ff93e9 Aggregations fix: support include/exclude strings formatted for IP and date fields in terms and significant_terms aggregations.
Closes 
2016-05-18 16:21:55 +01:00
Jason Tedor
db4809d906 Remove last vestigates of /bin/sh shebangs
This commit removes the remaining /bin/sh shebangs in favor of
/bin/bash.

Relates 
2016-05-18 11:03:00 -04:00
David Pilato
d85dac7a9a Add more logs 2016-05-18 16:43:56 +02:00
David Pilato
cfedda5291 Default azure container should be elasticsearch-snapshots
This bug has been introduced in 5.0 when we refactored settings
2016-05-18 16:43:28 +02:00
Isabel Drost-Fromm
394a60f3fd Switch to more match query for better illustration 2016-05-18 15:52:08 +02:00
Isabel Drost-Fromm
1f0f6132be Merge branch 'master' into docs/add_console_to_highlighting 2016-05-18 15:45:20 +02:00
Tanguy Leroux
27b65e90ca Merge pull request from tlrx/fix-18433
Add missing builder.endObject() in FsInfo
2016-05-18 15:40:55 +02:00
Isabel Drost-Fromm
a5268cd40d Add CONSOLE to version docs 2016-05-18 15:32:48 +02:00
Jason Tedor
cad0608cdb Add GC overhead logging
This commit adds simple GC overhead logging. This logging captures
intervals where the JVM is spending a lot of time performing GC but it
is not necessarily the case that each GC is large. For a start, this
logging is simple and does not attempt to incorporate whether or not the
collections were efficient (that is, we are only capturing that a lot of
GC is happening, not that a lot of useless GC is happening).

Relates 
2016-05-18 09:31:28 -04:00
Daniel Mitterdorfer
3954306af2 Merge pull request from danielmitterdorfer/fix-circuit-breaker-it
Clear all caches after testing parent breaker
2016-05-18 15:23:15 +02:00
Isabel Drost-Fromm
c20a669c2d Add CONSOLE to source filtering docs 2016-05-18 15:20:21 +02:00
Tanguy Leroux
d7a31c8cf7 Add missing builder.endObject() in FsInfo
closes 
2016-05-18 15:19:30 +02:00
Christoph Büscher
808ef6cec7 Fix parsing single rescore element in SearchSourceBuilder
We are currently only parsing the array-syntax for the rescore part
in SearchSourceBuilder ("rescore" : [ {...}, {...} ]) . We also need
to support "rescore" : {...}

Closes 
2016-05-18 15:08:28 +02:00
Isabel Drost-Fromm
a849cc97ea Add CONSOLE to script-fields docs 2016-05-18 14:38:54 +02:00
Isabel Drost-Fromm
0032d4760e Add CONSOLE to preference docs 2016-05-18 14:34:22 +02:00
Isabel Drost-Fromm
eca53d909c Merge branch 'master' into docs/add_console_to_search_request_options 2016-05-18 14:31:48 +02:00
Isabel Drost-Fromm
a3425b4bf8 Add CONSOLE to post-filter 2016-05-18 14:31:04 +02:00
Robert Muir
1022123f59 Merge pull request from uschindler/painless_java9StringConcats
Use Java 9 Indy String Concats, if available
2016-05-18 08:00:20 -04:00
Isabel Drost-Fromm
125b715e45 Adds CONSOLE to count api 2016-05-18 13:36:19 +02:00
Clinton Gormley
c03dd8a290 Make the index-too-old exception more explicit ()
Closes 
2016-05-18 13:33:25 +02:00
Isabel Drost-Fromm
f22f3c7df5 Add CONSOLE to several trivial search request docs.
Relates to 

Touches explain, fielddata-fields, fields, index-boost, min-score,
named-queries-and-filters, query
2016-05-18 13:15:19 +02:00
Christoph Büscher
de321fb159 Disabling nodes.stats/30_discovery.yaml rest test
This is tracked in issue , so temporarily disabling
the tests.
2016-05-18 13:02:55 +02:00
Nik Everett
148f9af585 Convert search-after tests to // CONSOLE
Relates to 
2016-05-18 06:37:13 -04:00
Daniel Mitterdorfer
de3e7d161f Add tests for null precondition check in BulkRequest
Relates 

Checked with @javanna
2016-05-18 12:10:13 +02:00
Isabel Drost-Fromm
947daf68d1 Add CONSOLE to from/size docs
Relates to 
2016-05-18 11:54:41 +02:00
Isabel Drost-Fromm
77c4970504 Merge pull request from MaineC/docs/add_console_to_sort
Add CONSOLE annotation to sort documentation
2016-05-18 11:20:41 +02:00
Isabel Drost-Fromm
333fe25321 Merge branch 'master' into docs/add_console_to_sort 2016-05-18 11:09:00 +02:00
Isabel Drost-Fromm
8016a2f951 Switch to keyword/text type, add refresh parameter 2016-05-18 11:08:27 +02:00
Yannick Welsch
6dacac49b3 Simplify recovery logic in IndicesClusterStateService ()
- Moves recovery logic into IndexShard
- Simplifies logic to cancel peer recovery of shard where recovery source node changed
- Ensures routing entry is set on initialization of IndexShard
2016-05-18 10:51:57 +02:00
Daniel Mitterdorfer
c13df3b6c5 Clear all caches after testing parent breaker
With this commit we clear all caches after testing the parent circuit breaker.
This is necessary as caches hold on to circuit breakers internally. Additionally,
due to usage of CircuitBreaker#addWithoutBreaking() in caches, it's even possible
to go above the limit. As a consequence, all subsequent requests fall victim to
the limit.

Hence, right after the parent circuit breaker tripped, we clear all caches to
reduce these circuit breakers to 0 again. We also exclude the clear caches
transport request from limit check in order to ensure it will succeed. As this is
typically a very small and low-volume request, it is deemed ok to exclude it.

Closes 
2016-05-18 09:31:35 +02:00
Nik Everett
850e9d7c57 [docs] Add // CONSOLE to validate and uri-request
Two of the snippets in validate weren't working properly so they are
marked as skip and linked to this:
https://github.com/elastic/elasticsearch/issues/18254

We didn't properly handle empty parameter values. We were sending
them as the literal string "null". Now we do better and send them
as the empty string.
2016-05-17 21:21:43 -04:00
Uwe Schindler
ea9026e6d8 painless: fix checkstyle 2016-05-18 00:31:12 +02:00