Commit Graph

46972 Commits

Author SHA1 Message Date
James Rodewig 3bdd2f4432
[DOCS] Fix broken links for ES API docs move (#44279)
* [DOCS] Fix broken links for ES API docs move

Co-Authored-By: Lisa Cawley <lcawley@elastic.co>
2019-07-12 12:46:22 -04:00
Tom Veasey f4496b9979
[ML] Reenable integration test and relax test tolerance for Linux (#43031) 2019-07-12 17:42:21 +01:00
Zachary Tong eac86c9bb8
Document that pipeline aggs are not compatible with composite agg (#44180) 2019-07-12 12:34:34 -04:00
James Rodewig 562d609c45 [DOCS] Relocate several APIs to REST APIs section (#44238) 2019-07-12 12:15:01 -04:00
Nikita Glashenko a85199286d Support WKT point conversion to geo_point type (#44107)
This PR adds support for parsing geo_point values from WKT POINT format.
Also, a few minor bugs in geo_point parsing were fixed.

Closes #41821
2019-07-12 11:44:59 -04:00
Lisa Cawley b3a7b2221b
[DOCS] Reformats API parameter details (#44194) 2019-07-12 08:26:31 -07:00
Lisa Cawley 727199e398
[DOCS] Removes links to ML tutorial (#44251) 2019-07-12 08:25:23 -07:00
Tal Levy 5e285f25d1
update docs referencing allowed script types (#44143)
- javadoc fix referencing incorrect number of script types
- explicitely mention ability to specify stored script type
  in the allowed_types setting
2019-07-12 08:09:11 -07:00
Lisa Cawley 7915a439fc
[DOCS] Moves Watcher troubleshooting page (#44250) 2019-07-12 08:07:12 -07:00
Hendrik Muhs d4ec21bca1
[ML-DataFrame] Rewrite continuous logic to prevent terms count limit (#44219)
Rewrites how continuous data frame transforms calculates and handles buckets that require an update. Instead of storing the whole set in memory, it pages through the updates using a 2nd cursor. This lowers memory consumption and prevents problems with limits at query time (max_terms_count). The list of updates can be re-retrieved in a failure case (#43662)
2019-07-12 16:31:14 +02:00
Benjamin Trent 0b6676a914
[ML][Data Frame] responding with 409 status code when failing _stop (#44231)
* [ML][Data Frame] responding with appropriate status code when failing _stop

* adding null checks for persistent task data

* addressing PR comments
2019-07-12 07:57:00 -05:00
Przemysław Witek d039b656cf
Update .ml-config mappings before indexing job, datafeed or df analytics config (#44216) 2019-07-12 14:25:19 +02:00
Yannick Welsch f00b658130
Remove RemoteClusterConnection.ConnectedNodes (#44235)
This instead exposes the set of connected nodes on ConnectionManager.
2019-07-12 14:23:06 +02:00
Armin Braun ac6b936949
Enable BwC Tests after #43148 Backport (#44270)
* #43148 has been backported to `7.4` -> we can reenable these tests
after adjusting the version in teh serialization logic
2019-07-12 14:06:58 +02:00
Armin Braun 4fd4fdd533
Disable BwC Tests for #43148 (#44262)
* Since we're changing the way the snapshot status message is serialized
in #43148 we need to turn of BwC tests here
2019-07-12 12:05:06 +02:00
Armin Braun 6e283f2b8e
Remove Redundant GetAllSnapshots Method from RepositoryData (#44259)
* With the removal of the incompatible snapshots list in RepositoryData
the get snapshots and get all snapshots methods are equivalent so I
removed one of them
2019-07-12 11:49:36 +02:00
Przemysław Witek d4046d5636
Make testDatafeedTimingStats_DatafeedJobIdUpdated test easier to debug (#44206) 2019-07-12 11:47:25 +02:00
Armin Braun 31ec9edff4
Fix InternalTestCluster StopRandomNode Assertion (#44258)
* The assertion added in #44214 is tripped by tests running dedicated
test clusters per test needlessly.This breaks existing tests like the one in #44245.
* Closes #44245
2019-07-12 11:04:08 +02:00
Ioannis Kakavas 5292e17f39
Make plugin verification FIPS 140 compliant (#44224)
This change makes the process of verifying the signature of
official plugins FIPS 140 compliant by defaulting to use the
BouncyCastle FIPS provider and adding a dependency to bcpg-fips
that implement parts of openPGP in a FIPS compliant manner.

In already FIPS 140 enabled environments that use the 
BouncyCastle FIPS provider, the bcfips dependency is redundant
but doesn't cause an issue as it will be added only in the classpath
 of the cli-tools
2019-07-12 12:01:51 +03:00
Alpar Torok 433b345852
Fix port range allocation with large worker IDs (#44213)
* Fix port range allocation with large worker IDs

Relates to #43983

The IDs gradle uses are incremented for the lifetime of the daemon which
can result in port ranges that are outside the valid range.
This change implements a modulo based formula to wrap the port ranges
when the IDs get too large.

Adresses #44134 but #44157 is also required to be able to close it.
2019-07-12 10:53:33 +03:00
David Turner cc51a9316f
Avoid counting votes from master-ineligible nodes (#43688)
Today if a master-eligible node is converted to a master-ineligible node it may
remain in the voting configuration, meaning that the master node may count its
publish responses as an indication that it has properly persisted the cluster
state. However master-ineligible nodes do not properly persist the cluster
state, so it is not safe to count these votes.

This change adjusts `CoordinationState` to take account of this from a safety
point of view, and also adjusts the `Coordinator` to prevent such nodes from
joining the cluster. Instead, it triggers a reconfiguration to remove from the
voting configuration a node that now appears to be master-ineligible before
processing its join.
2019-07-12 08:32:31 +01:00
Mark Vieira 4af1649aa8
Revert "[DOCS] Moves Watcher troubleshooting page (#44144)"
This reverts commit 92a5a375a0.
2019-07-11 17:12:32 -07:00
Lisa Cawley 92a5a375a0
[DOCS] Moves Watcher troubleshooting page (#44144) 2019-07-11 14:30:35 -07:00
Armin Braun 6b21aceac5
Remove Redundant Setting of OP_WRITE Interest (#43653)
* Remove Redundant Setting of OP_WRITE Interest

* We shouldn't have to set OP_WRITE interest before running into a partial write. Since setting OP_WRITE is handled by the `eventHandler.postHandling` logic, I think we can simply remove this operation and simplify/remove tests that were testing the setting of the write interest
2019-07-11 23:24:24 +02:00
James Rodewig 3bdeb45ed7 Revert "[DOCS] Relocate several APIs to REST APIs section (#44238)"
This reverts commit 6ebd59791a.
2019-07-11 17:00:45 -04:00
Ryan Ernst f7d06eea55
Remove most direct test calls to TransportAction.execute (#44241)
There are currently 3 variants of TransportAction.execute. The
implementations of these require additional ctor arguments to all
TransportAction implementations. While the non test uses can be
converted to using NodeClient to execute other actions, using that for
test cases would be cumbersome and defeat the purpose of unit tests
testing an action's implementation directly. This commit adds a public
test-only utility method for test to use to call execute. This method
will continue to be available when the execute implementations are
collapsed and made package private.

relates #43881
2019-07-11 13:53:46 -07:00
Mark Vieira 8759d769b2
Mute failing test 2019-07-11 13:32:33 -07:00
Albert Zaharovits 59fc77f52c
Fix X509AuthenticationToken principal (#43932)
Fixes a bug in the PKI authentication. This manifests when there
are multiple PKI realms configured in the chain, with different
principal parse patterns. There are a few configuration scenarios
where one PKI realm might parse the principal from the Subject
DN (according to the `username_pattern` realm setting) but
another one might do the truststore validation (according to
the truststore.* realm settings).

This is caused by the two passes through the realm chain, first to
build the authentication token and secondly to authenticate it, and
that the X509AuthenticationToken sets the principal during
construction.
2019-07-11 23:28:01 +03:00
James Rodewig 6ebd59791a
[DOCS] Relocate several APIs to REST APIs section (#44238) 2019-07-11 16:22:57 -04:00
Mark Vieira 1f1d542ea3
Pass tests.jvms system property to test tasks for maxParallelForks (#44237) 2019-07-11 12:37:31 -07:00
John Murphy 8a5a01fc12 [DOCS] Add `lowercase` filter to phrase suggester example so searches are case insensitive (#44186) 2019-07-11 15:08:22 -04:00
Mayya Sharipova 16747f811f
Add l1norm and l2norm distances for vectors (#44116)
* Add l1norm and l2norm distances for vectors

Add L1norm - Manhattan distance
Add L2norm - Euclidean distance
relates to #37947

* Address Christoph's feedback

- organize vector functions as a separate doc
- increase precision in tests calculations
- add a separate test when sparse doc dims
are bigger and less than query vector dims

* Made examples more realistic
2019-07-11 14:14:23 -04:00
Christoph Büscher 7149c2b8e4
[Tests] Increase SimpleQueryStringIT allowed maxClauseCount (#44215)
For this test, we randomize the CLUSTER_MAX_CLAUSE_COUNT on test setup
(@BeforeClass) between 50 and 100. Some queries in the test generate 56 clauses
which hasn't been an issue before LUCENE-8811, but we slightly need to increase
the minimal possible clause count now.

Closes #44192
2019-07-11 20:14:02 +02:00
Yannick Welsch 3609eec64d
Report usages old child breakers when breaking on real memory (#44221)
This will help in investigations where the real memory circuit breaker is tripped to better understand
on what the actual memory is used, i.e. whether it's a temporary thing (e.g. requests) in contrast to
more permanently allocated memory (e.g. accounting).
2019-07-11 19:11:42 +02:00
István Zoltán Szabó 74c16efe2a
[DOCS] Adds data frame analytics API and evaluate API resource documentation (#43972)
This PR adds the resource documentation of the data frame analytics APIs and the evaluate API to the ML API doc pool.
2019-07-11 18:05:05 +02:00
Armin Braun 2c2dbbcfeb
Safer Shard Snapshot Delete (#44165)
* Safer Shard Snapshot Delete

* We shouldn't delete the snapshot meta file before we update the index
in the shard folder. If we fail to update the index-N after deleting the
existing index-N is broken because the snap- blob it references is gone.
2019-07-11 17:20:46 +02:00
Benjamin Trent c33b6b1070
[ML][Data Frame] adds index validations to _start data frame transform (#44191)
* [ML][Data Frame] adds index validations to _start data frame transform

* addressing pr comments
2019-07-11 09:39:25 -05:00
Nicholas Knize 1b0f22268e Update Version.V_7_4_0 to use Lucene 8.2.0
Updating lucene to version 8.2.0 for 7.4 bwc
2019-07-11 09:26:28 -05:00
Armin Braun a052067759
Fix ShrinkIndexIT (#44214)
* Fix ShrinkIndexIT

* Move this test suit to cluster scope. Currently, `testShrinkThenSplitWithFailedNode` stops a random node which randomly turns out to be the only shared master node so the cluster reset fails on account of the fact that no shared master node survived.
* Closes #44164
2019-07-11 15:49:47 +02:00
James Rodewig e04c8464c7
[DOCS] Rewrite `has_child` query to use new format (#44190) 2019-07-11 09:10:39 -04:00
Christoph Büscher a4d1a99378
Fix type inference issue in eclipse (#44212)
Explicitely type lister, since Eclipses compiler is not able to correctly infer
the function type otherwise.
2019-07-11 14:25:09 +02:00
Benjamin Trent 873e9f93cf
[ML] Adds support for regression.mean_squared_error to eval API (#44140)
* [ML] Adds support for regression.mean_squared_error to eval API

* addressing PR comments

* fixing tests
2019-07-11 07:13:13 -05:00
Alpar Torok 5310dbf5cc
Run some REST tests against a cluster running in docker containers (#39515)
* Run REST tests against a cluster running on docker

Closes #38053
2019-07-11 15:04:25 +03:00
Yannick Welsch fea50c2e1c
Make NodeConnectionsService non-blocking (#44211)
With connection management now being non-blocking, we can make NodeConnectionsService
avoid the use of MANAGEMENT threads that are blocked during the connection attempts.

I had to fiddle a bit with the tests as testPeriodicReconnection was using both the mock Threadpool
from the DeterministicTaskQueue as well as the real ThreadPool initialized at the test class level,
which resulted in races.
2019-07-11 14:02:55 +02:00
Alpar Torok 3bfabf834b
Improve how log is tailed in testclusters on failure (#40600)
* Improoce how log is tailed in testclusters on failure

- only print last few lines
- print all errors and warnings
- compact repeating errors and warnings
2019-07-11 14:59:05 +03:00
surprisingb 73763cafab Update discovery-ec2 docs (#43693)
Fix `discovery.ec2.tag.TAGNAME` example with the correct parameter.
2019-07-11 12:57:59 +01:00
David Roberts 847de31805
[ML] Wait for .ml-config primary before assigning persistent tasks (#44170)
Now that ML job configs are stored in an index rather than
cluster state, availability of the .ml-config index is very
important to the operation of ML.  When a cluster starts up
the ML persistent tasks will be considered for node
assignment very early on.  It is best in this case if
assignment is deferred until after the .ml-config index is
available.

The introduction of data frame analytics jobs has made this
problem worse, because anomaly detection jobs already waited
for the primary shards of the .ml-state, .ml-anomalies-shared
and .ml-meta indices to be available before doing node
assignment, and by coincidence this would probably lead to
the primary shards of .ml-config also being searchable.  But
data frame analytics jobs had no other index checks prior to
this change.

This fixes problem 2 of #44156
2019-07-11 11:42:03 +01:00
Yannick Welsch c40b77b771
Simplify port usage in transport tests (#44157)
Simplifies AbstractSimpleTransportTestCase to use JVM-local ports  and also adds an assertion so
that cases like #44134 can be more easily debugged. The likely reason for that one is that a test,
which was repeated again and again while always spawning a fresh Gradle worker (due to Gradle
daemon) kept increasing Gradle worker IDs, causing an overflow at some point.
2019-07-11 12:11:39 +02:00
Tim Vernum 58636fe7b2
Document xpack.security.dls.bitset.cache settings (#44100)
Two new settings were introduced in #43669 (bb130f5) to control the
behaviour of the Document Level Security BitSet cache.

This change adds documentation for these 2 settings.
2019-07-11 17:13:20 +10:00
lcawl c9a265b092 [DOCS] Fixes formatting in data frame analytics API 2019-07-10 17:58:17 -07:00