Commit Graph

47269 Commits

Author SHA1 Message Date
Lisa Cawley 3f31859669
[DOCS] Updates terms in machine learning datafeed APIs (#44883) 2019-07-26 10:47:03 -07:00
Igor Motov f603f06250
Geo: refactor geo mapper and query builder (#44884)
Refactors out the indexing and query generation logic out of the
mapper and query builder into a separate unit-testable classes.
2019-07-26 12:14:05 -04:00
Gordon Brown a76242d43d Update serialization version for ILM explain filters 2019-07-26 09:57:55 -06:00
Jason Tedor 8ebe466f1e
Fix failing scaling thread pool test
The previous commit took away the distinction between relying on the
defaults versus relying on an explicit setting for processors. This
commit adds this back, and adjusts the logic to account for the fact
that processors can not exceed available processors any longer.
2019-07-27 00:54:06 +09:00
Jason Tedor 5b2d1a5d39
Limit processors by available processors (#44894)
This commit limits the processors setting to be more than the number of
available processors.
2019-07-27 00:07:12 +09:00
Tanguy Leroux 337ad068af
Ensure index is green in SimpleClusterStateIT.testIndicesOptions() (#44893)
SimpleClusterStateIT testIndicesOptions failed in #44817 because it tries to close 
an index at the beginning of the test. With random index settings, it is possible that 
the index has a high number of shards (10) and replicas (1), which means that on 
CI this index can take time to be fully allocated.

The close index request can fail in the case where replicas are still recovering operations. 
Thiscommit adds a simple ensureGreen() at the beginning of the test to be sure that all 
replicas are started before trying to close the index.

closes #44817
2019-07-26 16:58:39 +02:00
Armin Braun fa0c54ce56
Fix Test Failure in ScalingThreadPoolTests (#44898)
* Due to #44894 some constellations log a deprecation warning here now
* Fixed by checking for that
2019-07-26 14:34:09 +02:00
Przemysław Witek 0f03de5956
Implement exponential average search time per hour statistics. (#44683) 2019-07-26 12:19:13 +02:00
István Zoltán Szabó 84793476ba
[DOCS] Amends data frame analytics resources, GET, and PUT API docs (#44806)
This PR addresses the feedback in  https://github.com/elastic/ml-team/issues/175#issuecomment-512215731.

* Adds an example to `analyzed_fields`
* Includes `source` and `dest` objects inline in the resource page
* Lists `model_memory_limit` in the PUT API page
* Amends the `analysis` section in the resource page
* Removes Properties headings in subsections
2019-07-26 11:39:59 +02:00
Tanguy Leroux e3997c6713
Ensure cluster is stable in ShrinkIndexIT.testShrinkThenSplitWithFailedNode (#44860)
The test ShrinkIndexIT.testShrinkThenSplitWithFailedNode sometimes fails 
because the resize operation is not acknowledged (see #44736). This resize 
operation creates a new index "splitagain" and it results in a cluster state 
update (TransportResizeAction uses MetaDataCreateIndexService.createIndex() 
to create the resized index). This cluster state update is expected to be 
acknowledged by all nodes (see IndexCreationTask.onAllNodesAcked()) but 
this is not always true: the data node that was just stopped in the test before 
executing the resize operation might still be considered as a "faulty" node
 (and not yet removed from the cluster nodes) by the FollowersChecker. The 
cluster state is then acked on all nodes but one, and it results in a non 
acknowledged resize operation.

This commit adds an ensureStableCluster() check after stopping the node in 
the test. The goal is to ensure that the data node has been correctly removed 
from the cluster and that all nodes are fully connected to each before moving 
forward with the resize operation.

Closes #44736
2019-07-26 10:12:59 +02:00
Jason Tedor 16a4aa56bd
Deprecate setting processors to more than available (#44889)
Today the processors setting is permitted to be set to more than the
number of processors available to the JVM. The processors setting
directly sizes the number of threads in the various thread pools, with
most of these sizes being a linear function in the number of
processors. It doesn't make any sense to set processors very high as the
overhead from context switching amongst all the threads will overwhelm,
and changing the setting does not control how many physical CPU
resources there are on which to schedule the additional threads. We have
to draw a line somewhere and this commit deprecates setting processors
to more than the number of available processors. This is the right place
to draw the line given the linear growth as a function of processors in
most of the thread pools, and that some are capped at the number of
available processors already.
2019-07-26 17:06:10 +09:00
Tanguy Leroux 321c2b8627
Force Merge should reject requests with `only_expunge_deletes` and `max_num_segments` set (#44761)
This commit changes the ForceMergeRequest.validate() method so that it does 
not accept the parameters only_expunge_deletes and max_num_segments 
to be set at the same time.

The motivation is that InternalEngine.forceMerge() just ignores the max. number 
of segments parameter when the only expunge parameter is set to true, leaving 
the wrong impression to the user that max. number of segments has been applied. 
It also changes InternalEngine.forceMerge() so that it now throws an exception 
when both parameters are set, and modifies tests where needed.

Because it changes the behavior of the REST API I marked this as >breaking. 

Closes #43102
2019-07-26 09:34:36 +02:00
Ioannis Kakavas be7bea9954
Document xpack.security.authc.saml.realm for Kibana (#44705)
Since 7.3, it's possible to explicitly configure the SAML realm to
be used in Kibana's configuration. This in turn, eliminates the need
of properly setting `xpack.security.public.*` settings in Kibana
and largely simplifies relevant documentation.
This also changes `xpack.security.authProviders` to
`xpack.security.authc.providers` as the former was deprecated in
favor of the latter in 7.3 in Kibana
2019-07-26 09:37:45 +03:00
Ignacio Vera b8ef6127f2
Upgrade to Lucene 8.2.0 release (#44859) 2019-07-26 05:57:02 +02:00
lcawl f2a6dd7250 [DOCS] Clarifies dataframe transform validations 2019-07-25 15:03:57 -07:00
Gordon Brown 5f0861aac0
Add option to filter ILM explain response (#44777)
In order to make it easier to interpret the output of the ILM Explain
API, this commit adds two request parameters to that API:

- `only_managed`, which causes the response to only contain indices
  which have `index.lifecycle.name` set
- `only_errors`, which causes the response to contain only indices in an
  ILM error state

"Error state" is defined as either being in the `ERROR` step or having
`index.lifecycle.name` set to a policy that does not exist.
2019-07-25 17:16:18 -04:00
Yannick Welsch ad64ec197b Adapt BWC condition for clone index API after backport (#44267)
Changes the BWC conditions for the clone index API after backport of the feature to 7.x
2019-07-25 22:51:23 +02:00
Yannick Welsch ae486e4911
Asynchronously connect to remote clusters (#44825)
Refactors RemoteClusterConnection so that it no longer blockingly connects to remote clusters.

Relates to #40150
2019-07-25 22:51:04 +02:00
Mark Vieira 016f98c1cc
Fix issue with Gradle daemons hanging indefinitely on shutdown (#44867) 2019-07-25 12:44:45 -07:00
Ryan Ernst 659f60f62f
Add missing ZonedDateTime methods for joda compat layer (#44829)
While joda no longer exists in the apis for 7.x, the compatibility layer
still exists with helper methods mimicking the behavior of joda for
ZonedDateTime objects returned for date fields in scripts. This layer
was originally intended to be removed in 7.0, but is now likely to exist
for the lifetime of 7.x.

This commit adds missing methods from ChronoZonedDateTime to the compat
class. These methods were not part of joda, but are needed to act like a
real ZonedDateTime.

relates #44411
2019-07-25 11:40:21 -07:00
Lisa Cawley 280b40eaa4
[DOCS] Adds command reference for elasticsearch-croneval (#43946) 2019-07-25 11:32:31 -07:00
Lisa Cawley aefb72040c
[DOCS] Updates terms in machine learning calendar APIs (#44866) 2019-07-25 11:20:42 -07:00
Yannick Welsch 76fcc81275
Add Clone Index API (#44267)
Adds an API to clone an index. This is similar to the index split and shrink APIs, just with the
difference that the number of primary shards is kept the same. In case where the filesystem
provides hard-linking capabilities, this is a very cheap operation.

Indexing cloning can be done by running `POST my_source_index/_clone/my_target_index` and it
supports the same options as the split and shrink APIs.

Closes #44128
2019-07-25 20:17:51 +02:00
Julie Tibshirani 729aca5b8d
Fix an NPE when requesting inner hits and _source is disabled. (#44836)
This PR makes two changes to FetchSourceSubPhase when _source is disabled and
we're in a nested context:
* If no source filters are provided, return early to avoid an NPE.
* If there are source filters, make sure to throw an exception.

The behavior was chosen to match what currently happens in a non-nested context.
2019-07-25 10:34:37 -07:00
Lisa Cawley 9b16486615
[DOCS] Minor edits to HLRC ML APIs (#44865) 2019-07-25 10:00:06 -07:00
Lisa Cawley c9b585eacb
[DOCS] Fixes terms in HLRC data frame transform APIs (#44838) 2019-07-25 09:13:26 -07:00
Lisa Cawley 990e037728
[DOCS] Updates terms in anomaly detection job APIs (#44839) 2019-07-25 08:58:16 -07:00
Nicholas Knize 0dfcdf327a [GEO] Fix GeoShapeQueryBuilder to check for valid spatial relations
Refactor left out the spatial strategy check in GeoShapeQueryBuilder.relation
setter method. This commit adds that check back in.
2019-07-25 10:29:47 -05:00
István Zoltán Szabó 5275392b47
[DOCS] Adds allow no datafeeds query param to the GET, GET stats and STOP datafeed APIs (#44499) 2019-07-25 16:45:06 +02:00
Hendrik Muhs 6e7d0614d9
do not assert on indexer state (#44854)
remove the unreliable check for the state change

fixes #44813
2019-07-25 16:37:36 +02:00
David Roberts bec16ef278
[ML-DataFrame] Adjust data frame stats BWC following backport (#44852)
This change adjusts the changes of #44768 to account
for the backport to the 7.x branch in #44848.
2019-07-25 15:34:13 +01:00
Przemysław Witek 5ba0fd3859
Treat PostDataActionResponse.DataCounts.bucketCount as incremental rather than absolute (total). (#44803) 2019-07-25 15:59:52 +02:00
David Roberts 7790093400
[ML-DataFrame] Muting tests for backport (#44850)
Mutes data frame BWC tests prior to backporting #44768
2019-07-25 12:38:15 +01:00
Albert Zaharovits 74d7fa898c
SecurityIndexManager handle RuntimeEx while reading mapping (#44409)
Fixes exception handling while reading and parsing `.security-*`
mappings and templates.
2019-07-25 13:50:33 +03:00
David Roberts c8974aabf6
[ML-DataFrame] Remove ID field from data frame indexer stats (#44768)
This is a followup to #44350. The indexer stats used to
be persisted standalone, but now are only persisted as
part of a state-and-stats document. During the review
of #44350 it was decided that we'll stick with this
design, so there will never be a need for an indexer
stats object to store its transform ID as it is stored
on the enclosing document. This PR removes the indexer
stats document ID.
2019-07-25 11:44:03 +01:00
Andrei Stefan 06dea859e8
SQL: fix URI path being lost in case of hosted ES scenario (#44776) 2019-07-25 10:26:38 +03:00
Andrei Stefan 5b9ccd72e9
SQL: [Tests] Re-enable testDriverConfigurationWithSSLInURL test with more logging (#44800) 2019-07-25 09:54:04 +03:00
Przemysław Witek f1bdc0c03e
Add result_type field to TimingStats and DatafeedTimingStats documents (#44812) 2019-07-25 08:04:36 +02:00
Deb Adair 8ed39438df [DOCS] Adding x version of the intro blurb for the TOC. 2019-07-24 14:25:07 -07:00
Nick Knize 0482894e57
[Geo] Refactor GeoShapeQueryBuilder to derive from AbstractGeometryQueryBuilder (#44780)
Refactors GeoShapeQueryBuilder to derive from a new AbstractGeometryQueryBuilder that provides common parsing and build logic for spatial geometries. This will allow development of custom geometry queries by extending AbstractGeometryQueryBuilder preventing duplication of common spatial query logic.
2019-07-24 15:41:31 -05:00
Ryan Ernst 1327b586de
Convert logging related gradle classes to java (#44771)
This commit converts the logging related classes (only used for vagrant)
to java from groovy.

relates #34459
2019-07-24 11:20:28 -07:00
Lisa Cawley 8b905cc19c
[DOCS] Adds descriptions for put and start data frame transforms (#44724) 2019-07-24 11:09:06 -07:00
Igor Motov 34675caef4
Geo: deprecate ShapeBuilder in QueryBuilders (#44715)
Removes unnecessary now timeline decompositions from shape builders
and deprecates ShapeBuilders in QueryBuilder in favor of libs/geo
shapes.

Relates to #40908
2019-07-24 14:07:10 -04:00
Lee Hinman b0a84089b4
Order ILM actions in policy definition documentation (#44773)
We already have a note that the order of actions is up to ILM for each
phase, this commit puts the actions in the same order as they will be
executed.

Resolves #41729
2019-07-24 11:27:35 -06:00
Enrico Zimuel c36f5853d1 Fix URL documentation in API specs (#44487) 2019-07-24 09:04:16 -07:00
Yannick Welsch 49825cff6d
Close connection manager on current thread in RemoteClusterConnection (#44805)
The problem is that RemoteClusterConnection closes the connection manager asynchronously, which races with the threadpool being shutdown at the end of the test.

Closes #44339
Closes #44610
2019-07-24 17:43:18 +02:00
Armin Braun e5cc3eb404
Cleanup Dead Code in Index Creation (#44784)
* Cleanup Dead Code in Index Creation
* This is all unused and the state of a create request is always `OPEN`
2019-07-24 17:35:21 +02:00
David Turner f539e8e995
Fix testFirstListElementsToCommaDelimitedStringReportsFirstElementsIfLong (#44785)
This test can fail (super-rarely) if it generates a list of length 11
containing a duplicate, because the `.distinct()` reduces the list length to 10
and then it is not abbreviated any more. This change generalises the test to
cover lists of any random length.
2019-07-24 16:09:51 +01:00
Tanguy Leroux 597194c78c
Adapt testFollowStatsApiIncludeShardFollowStatsWithRemovedFollowerIndex (#44801)
This commit unmutes and renames the test that failed on CI (#44796) 
after #44702 has been merged.

This test assumes that follow stats still exist after a follower index has 
been deleted. The follow stats are based on persistent tasks, and 
since #44702 the persistent tasks of deleted following indices are now
 automatically cleaned up to avoid to bloat the cluster state.

I don't think we should report any follow stats for deleted indices and I 
don't think that this test makes much sense now the tasks are cleaned 
up. This is why the test has been renamed.

closes #44796
2019-07-24 15:53:47 +02:00
Andrei Stefan dafd7b039b
Use hasValue() methods from aggregations' InspectionHelpers (#44745)
Use InspectionHelper classes to decide if the aggregations should return null (in case there is no value) or the value itself.
2019-07-24 15:55:20 +03:00