Commit Graph

49750 Commits

Author SHA1 Message Date
Jake 427bf374cd [DOCS] Bump copyright to 2019 for Java HLRC license (#50206) 2019-12-30 15:38:59 -05:00
Nhat Nguyen 9e46bbd306
Replace synced-flush with flush in rolling upgrade to 8.0 (#50524)
This change recommends using a regular flush instead of synced-flush in 
a rolling upgrade from 7.x to 8.0. We can perform noop recoveries with a
regular flush
2019-12-30 11:30:30 -05:00
Lisa Cawley 4478fae978
[DOCS] Adds intro for OIDC realm (#50485) 2019-12-30 07:03:38 -08:00
riverbuilding 66959be69e [DOCS] Correct Painless operator typos (#50472) 2019-12-30 08:48:10 -05:00
Nhat Nguyen 5e9b629aa2
Fix hard-deletes engine simulation (#50517)
The test "testRecoverFromHardDeletesIndex" failed because the 
"min_retained_seqno" commit tag exists after we index using a
hard-deletes engine. A hard-deletes engine must not create this 
commit tag; hence we need to remove it in the test.

Relates #50415
2019-12-29 16:40:42 -05:00
Nhat Nguyen 858892f9ee Adjust tests after always enable soft-deletes in 8.0
The InternalEngine always enables soft deletes in 8.0 regardless of the
setting. We need to wait for the global checkpoint and peer recovery
retention leases to be synced in these tests.

Relates #50415
2019-12-27 14:35:32 -05:00
James Rodewig 18ee52a5b2
[DOCS] Abbreviate token filter titles (#50511) 2019-12-27 11:00:51 -05:00
James Rodewig cfddddda0b
[DOCS] Fix search request body links (#50500)
PR #44238 changed several links related to the Elasticsearch search request body API. This updates several places still using outdated links or anchors.

This will ultimately let us remove some redirects related to those link changes.
2019-12-26 14:20:51 -05:00
James Rodewig 529d3d5a91
[DOCS] Fix search request body link (#50498) 2019-12-26 12:32:27 -05:00
Nhat Nguyen 424ed93e38
Always use soft-deletes in InternalEngine (#50415)
Peer recoveries become faster and use less storage (i.e., no more extra 
translog) with soft-deletes. Soft-deletes has been enabled by default
since 7.0. We should make it mandatory in 8.0, so we can simplify the
logic in the engine, recoveries, and other components.

With this change, InternalEngine will always use soft-deletes regardless 
of the soft_deletes settings.
2019-12-26 09:02:02 -05:00
Nhat Nguyen d02afccd98
Ensure relocating shards establish peer recovery retention leases (#50486)
We forgot to establish peer recovery retention leases for relocating primaries 
without soft-deletes.

Relates #50351
2019-12-26 08:58:34 -05:00
Nhat Nguyen 50bd5842c3
Fix testCancelRecoveryDuringPhase1 (#50449)
testCancelRecoveryDuringPhase1 uses a mock of IndexShard, which can't
create retention leases. We need to stub method createRetentionLease.

Relates #50351 
Closes #50424
2019-12-26 08:56:00 -05:00
James Rodewig e8a6d4a3fb
[DOCS] Remove unneeded redirects (#50476)
The docs/reference/redirects.asciidoc file stores a list of relocated or
deleted pages for the Elasticsearch Reference documentation.

This prunes several older redirects that are no longer needed and
don't require work to fix broken links in other repositories.
2019-12-26 07:49:41 -05:00
James Rodewig 11b1ebfd9e
[DOCS] Document `transport` and `http` node stats (#50473)
Documents the `transport` and `http` parameters returned by the
`_nodes/stats` API.
2019-12-26 07:41:23 -05:00
Lisa Cawley 6501338a9e
[DOCS] Remove redundant results from ML APIs (#50477) 2019-12-24 08:34:03 -08:00
Martijn van Groningen 244e6d21e9
Check watch count after stopping watcher in test teardown.
Also disabled slm in smoke test watcher qa test.

Relates to #41172
2019-12-24 15:39:56 +01:00
Nhat Nguyen 5e0030e130 Adjust BWC for peer recovery retention leases (#50351)
Relates #50351
2019-12-24 09:08:54 -05:00
Martijn van Groningen 99b3562388
Adjusted test to use transient settings instead of default settings. 2019-12-24 14:37:25 +01:00
Martijn van Groningen a48d19d73a
Add remote info to the HLRC (#50482)
Unreverts the commit that added the remote info api to HLRC (#49657).

The additional change to the original PR, is that `org.elasticsearch.client.cluster.RemoteConnectionInfo` now parses the initial_connect_timeout field as a string instead of a TimeValue instance.

The reason that this is needed is because that the initial_connect_timeout field in the remote connection api is serialized for human consumption, but not for parsing purposes.
Therefore the HLRC can't parse it correctly (which caused test failures in CI, but not in the PR CI
:( ). The way this field is serialized needs to be changed in the remote connection api, but that is a breaking change. We should wait making this change until rest api versioning is introduced.

Co-Authored-By: j-bean anton.shuvaev91@gmail.com
2019-12-24 13:20:39 +01:00
Martijn van Groningen b7ac7324d2
Revert "Add remote info to the HLRC (#49657)"
This reverts commit fa1a7c57b8.
2019-12-24 11:40:44 +01:00
Martijn van Groningen f4989c54c4
Revert "serialize initial_connect_timeout as xcontent correctly"
This reverts commit ae64eaabda.
2019-12-24 11:39:22 +01:00
Martijn van Groningen ae64eaabda
serialize initial_connect_timeout as xcontent correctly 2019-12-24 11:26:10 +01:00
j-bean fa1a7c57b8 Add remote info to the HLRC (#49657)
Relates to #47678
2019-12-24 10:49:21 +01:00
Nik Everett d1334b8122
Fix name for eclipse formatter in CONTRIBUTING (#50470)
The CONTRIBUTING.md file calls the Eclipse formatter
`elasticsearch.eclipseformat.xml` but it looks like we call it
`.eclipseformat.xml`.
2019-12-23 14:46:47 -05:00
Orhan Toy 48342740c5 [DOCS] Fixes "enables you to" typos (#50225) 2019-12-23 14:38:37 -05:00
James Rodewig 3460dc9542
[DOCS] Percentile aggs are non-deterministic (#50468)
Percentile aggregations are non-deterministic. A percentile aggregation
can produce different results even when using the same data.

Based on [this discuss post][0], the non-deterministic property stems
from processes in Lucene that can affect the order in which docs are
provided to the aggregation.

This adds a warning stating that the aggregation is non-deterministic
and what that means.

[0]: https://discuss.elastic.co/t/different-results-for-same-query/111757
2019-12-23 13:11:31 -05:00
Tal Levy 769650e00d
Centralize BoundingBox logic to a dedicated class (#50253)
Both geo_bounding_box query and geo_bounds aggregation have
a very similar definition of a "bounding box". A lot of this
logic (serialization, xcontent-parsing, etc) can be centralized
instead of having separated efforts to do the same things
2019-12-23 10:07:03 -08:00
Xiang Dai 432bd0e92c Fix docs typos (#50365)
Fixes a few typos in the docs.

Signed-off-by: Xiang Dai 764524258@qq.com
2019-12-23 10:35:14 -05:00
Armin Braun 7203ceefd8
Fix Source Only Snapshot REST Test Failure (#50456)
We are matching on the exact number of shards in this test, but may run into
snapshotting more than the single index created in it due to auto-created indices like
`.watcher`.
Fixed by making the test only take a snapshot of the single index used by this test.

Closes #50450
2019-12-23 11:23:39 +01:00
Martijn van Groningen 322db64a6b
Unmute 'Test url escaping with url mustache function' webhook watcher test (#50439)
Some changes had to be made in order to make the test pass due to the removal or types.
Added some more assertions. The failure description in this comment [0] indicates that the rest handler couldn't be found. The test passes now.
I plan to merge this into master and see how CI reacts, if it handles this change well then I will also unmute this test in 7 dot x branch.

Relates to #41172

0: https://github.com/elastic/elasticsearch/issues/41172#issuecomment-496993976
2019-12-23 10:48:58 +01:00
Mark Vieira d414b4e492
Upgrade to Gradle Enterprise plugin 3.1.1 (#50451) 2019-12-20 15:01:19 -08:00
Benjamin Trent cc84dd4f12
[ML][Inference] minor cleanup for inference (#50444) 2019-12-20 14:32:37 -05:00
James Rodewig a311018fbc
[DOCS] Remove outdated file scripts refererence (#50437)
File scripts were removed in 6.0 with #24627.

This removes an outdated file scripts reference from the conditional clauses section of the search templates docs.
2019-12-20 14:02:42 -05:00
Jack Conradson 75a5a0bbb9
Document use of context in put stored script (#50446)
This documents how to test compile a stored script against a specific 
context when using PUT/POST.
2019-12-20 10:52:44 -08:00
Lee Hinman 3ccc9ec63f
Make ILMHistoryStore.putAsync truly async (#50403)
* Make ILMHistoryStore.putAsync truly async

This moves the `putAsync` method in `ILMHistoryStore` never to block.
Previously due to the way that the `BulkProcessor` works, it was possible
for `BulkProcessor#add` to block executing a bulk request. This was bad
as we may be adding things to the history store in cluster state update
threads.

This also moves the index creation to be done prior to the bulk request
execution, rather than being checked every time an operation was added
to the queue. This lessens the chance of the index being created, then
deleted (by some external force), and then recreated via a bulk indexing
request.

Resolves #50353
2019-12-20 11:41:18 -07:00
Christoph Büscher c6f7166145
Throw Error on deprecated nGram and edgeNGram custom filters (#50376)
The camel-case `nGram` and `edgeNGram` filter names were deprecated in 6. We
currently throw errors on new indices when they are used. However these errors
are currently only thrown for pre-configured filters, adding them as custom
filters doesn't trigger the warning and error. This change adds the appropriate
exceptions for `nGram` and `edgeNGram` respectively.

Closes #50360
2019-12-20 18:01:05 +01:00
Nhat Nguyen 64b07191c2
Close engine before reset log appender (#50390)
Merge threads can run and access the mock appender after we have stopped it.

Closes #50315
2019-12-20 11:47:47 -05:00
Andrei Dan 1ba4339a0c
Make the TransportRolloverAction execute in one cluster state update (#50388)
This commit makes the TransportRolloverAction more resilient, by having it execute
only one cluster state update that creates the new (rollover index), rolls over
the alias from the source to the target index and set the RolloverInfo on the
source index. Before these 3 steps were represented as 3 chained cluster state
updates, which would've seen the user manually intervene if, say, the alias
rollover cluster state update (second in the chain) failed but the creation of
the rollover index (first in the chain) update succeeded

* Rename innerExecute to applyAliasActions

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2019-12-20 16:29:37 +00:00
Benjamin Trent fee5b317eb
[ML][Inference] updates specs with new params + docs (#50373) 2019-12-20 11:26:42 -05:00
Przemysław Witek 09b9ecba56
Now, that the PR with `aggName` is backported, the version can be changed to 7.6 (#50436) 2019-12-20 16:14:01 +01:00
Igor Motov 7f81467378
Geo: Switch generated GeoJson type names to camel case (#50285) (#50400)
Switches generated GeoJson type names to camel case
to conform to the standard.

Closes #49568
2019-12-20 04:47:42 -10:00
Martijn van Groningen f66555ea83
Disable slm in AbstractWatcherIntegrationTestCase (#50422)
SLM isn't required tests extending from this base class and
only add noise during test suite teardown.

Closes #50302
2019-12-20 15:43:00 +01:00
Florian Kelbert 0778c34630 [DOCS] Fix typo in bucket sum aggregation docs (#50431) 2019-12-20 08:47:24 -05:00
Jim Ferenczi 87c99a186c
reenable bwc test now that #50272 is merged (#50430) 2019-12-20 14:34:56 +01:00
Przemysław Witek e901f90afb
Fix accuracy metric (#50310) 2019-12-20 14:00:21 +01:00
Alexander Reelsen 0a66fefbf1
Remove accidentally added license files (#50370)
As license infos and sha files belong to the licenses/ folder, these
files seem to have been added accidentally some time ago.
2019-12-20 13:53:11 +01:00
Jim Ferenczi 1f756b9881
Adapt InternalComposite serialization after backport (#50352)
This commit adapts the version checks of the InternalComposite
serialization after the backport of #50272.
Note that this pr disables bwc tests since #50272 is not merged yet.
2019-12-20 12:31:46 +01:00
Przemysław Witek c90699e7dc
Make each analysis report desired field mappings to be copied (#50219) 2019-12-20 12:14:41 +01:00
Alpar Torok 6c02f3d72a Fix NPE when `./gradlew run` without `--data-dir` (#50421) 2019-12-20 11:10:06 +00:00
Yannick Welsch fa343f9766 Mute RecoverySourceHandlerTests.testCancelRecoveryDuringPhase1
Relates #50424
2019-12-20 11:59:09 +01:00