Commit Graph

44971 Commits

Author SHA1 Message Date
Lisa Cawley bec0a19367
[DOCS] Corrected API path for invalidate token and SSL certificate examples (#39530) 2019-03-12 13:25:16 -07:00
Lisa Cawley 950d83da05
[DOCS] Added upgrade step for realm settings (#39672) 2019-03-12 13:02:00 -07:00
Andy Bristol 795115ddbc add version 6.6.3 2019-03-12 12:58:00 -07:00
David Turner 839237d377
Only connect to new nodes on new cluster state (#39629)
Today, when applying new cluster state we attempt to connect to all of its
nodes as a blocking part of the application process. This is the right thing to
do with new nodes, and is a no-op on any already-connected nodes, but is
questionable on known nodes from which we are currently disconnected: there is
a risk that we are partitioned from these nodes so that any attempt to connect
to them will hang until it times out. This can dramatically slow down the
application of new cluster states which hinders the recovery of the cluster
during certain kinds of partition.

If nodes are disconnected from the master then it is likely that they are to be
removed as part of a subsequent cluster state update, so there's no need to try
and reconnect to them like this. Moreover there is no need to attempt to
reconnect to disconnected nodes as part of the cluster state application
process, because we periodically try and reconnect to any disconnected nodes,
and handle their disconnectedness reasonably gracefully in the meantime.

This commit alters this behaviour to avoid reconnecting to known nodes during
cluster state application.

Resolves #29025.
2019-03-12 19:26:25 +00:00
ajoshbiol dd01da9f6f Adding an example in the Set processor documentation to address #30604 (#39941)
* Added an example of using set to copy values from one field to another.

* Modified the document type to match the test.
2019-03-12 10:47:47 -07:00
Jack Conradson 17cc7927c4
Add Painless cast tests for int and Integer (#39813) 2019-03-12 10:12:42 -07:00
Armin Braun 6a7f4cf399
Remove Unused AckClusterStatePublishResponseHandler (#39892)
This isn't used anywhere
2019-03-12 17:55:42 +01:00
Michael Basnight 55eded9a4f More lenient socket binding in LDAP tests (#39864)
The LDAP tests attempt to bind all interfaces,
but if for some reason an interface can't be bound
the tests will stall until the suite times out.

This modifies the tests to be a bit more lenient and allow
some binding to fail so long as at least one succeeds.
This allows the test to continue even in more antagonistic
environments.
2019-03-12 12:00:02 -04:00
Jay Modi 1f0741ce73
Add client jar for transport-nio (#39860)
This change marks the transport-nio plugin as having a client jar. The
nio transport can be used from a transport client and the
x-pack-transport artifact depends on the transport-nio jar but this jar
is not published. This change marks the transport-nio project as having
a client jar so that the jar may be published in the same way that we
publish the netty4 transport artifact.

The change to actually publish the jar will be handled separately as an
update to the release manager.
2019-03-12 09:03:41 -06:00
Dimitris Athanasiou a4a37bffc9
[ML] Fix datafeed skipping first bucket after lookback when aggs are … (#39859)
The problem here was that `DatafeedJob` was updating the last end time searched
based on the `now` even though when there are aggregations, the extactor will
only search up to the floor of `now` against the histogram interval.
This commit fixes the issue by using the end time as calculated by the extractor.

It also adds an integration test that uses aggregations. This test would fail
before this fix. Unfortunately the test is slow as we need to wait for the
datafeed to work in real time.

Closes #39842
2019-03-12 16:23:14 +02:00
Przemyslaw Gomulka 881d343c5c
Change zone formatting for all printers (#39568)
After the joda-java time migration we were formatting zone ids with zoneOrOffsetId method. This when a date was provided with a ZoneRegion for instance America/Edmonton it was appending this zone identifier instead of zone formatted as +HH:MM.
This fix is changing the format of zone suffix for all printers and also always wrapping a Temporal into a ZonedDateTime when formatting.

closes #38471
2019-03-12 13:10:36 +01:00
Andrey Ershov 09425d5a51
Add elasticsearch-node tool docs (#37812)
This commit, mostly authored by @DaveCTurner, 
adds documentation for elasticsearch-node tool #37696.
2019-03-12 12:43:29 +01:00
lzh3636 fe405bd6d3 Log missing file exception when failing to read metadata snapshot (#32920)
Adds the exception to the logged output, which contains info about the file that's missing.
2019-03-12 10:41:15 +01:00
Like 0098c2e5b9 Migrate Streamable to writeable for index package (#37381)
Migrate streamable classes from index package to Writeable and clean up access modifiers

Related to #34389
2019-03-12 09:21:48 +01:00
Przemyslaw Gomulka 3a76c3045e
Date_math_expression doc to inform about format (#39840)
The format since 7 should be compatible with java-time. Users should be informed about this on this page
2019-03-12 09:18:57 +01:00
Adrien Grand 8905d77ca4
Update the how-to section of the docs for 7.0: (#37717)
- new `rank_feature`/`script_score` queries
 - new `index_phrases`/`index_prefixes` options
 - disabling `_field_names` doesn't help anymore
 - adaptive replica selection is on by default
2019-03-12 08:23:53 +01:00
Nhat Nguyen c69f3151e7 Enable soft deletes in RetentionLeaseIT
Relates #39922
2019-03-11 22:10:23 -04:00
Nhat Nguyen 695b20f01b
Enforce retention leases require soft deletes (#39922)
If a primary on 6.7 and a replica on 5.6 are running more than 5 minutes
(retention leases background sync interval), the retention leases
background sync will be triggered, and it will trip 6.7 node due to the
illegal checkpoint value. We can fix the problem by making the returned
checkpoint depends on the node version. This PR, however, chooses to
enforce retention leases require soft deletes, and make retention leases
sync noop if soft deletes is disabled instead.

Closes #39914
2019-03-11 20:51:32 -04:00
Yannick Welsch e500daffbd
Do not swallow exceptions in TimedRunnable (#39856)
Executors of type fixed_auto_queue_size (i.e. search / search_throttled) wrap runnables into
TimedRunnable, which is an AbstractRunnable. This is dangerous as it might silently swallow
exceptions, and possibly miss calling a response listener. While this has not triggered any failures in
the tests I have run so far, it might help uncover future problems.

Follow-up to #36137
2019-03-11 18:59:31 +01:00
Yannick Welsch 33e2cff3e8
Fix CoordinatorTests.testIncompatibleDiffResendsFullState (#39345)
This test started failing since decreasing the leader and follower check timeouts (#38298). The
reason is that the test was relying on the default publication timeout to come into effect before
leader / follower check timeouts, which is now not always true anymore.

Closes #38867
2019-03-11 18:58:46 +01:00
Jack Conradson d8416fcb74
Fix Painless def [char] to String casts (#39759)
* Start to fix def char casts.

* Fix def char to String casts
2019-03-11 10:43:03 -07:00
Hendrik Muhs e3f2f05e6c
change internal index to index doc_type, id, source and dest (#39913)
change internal index to index doc_type, id, source and dest
2019-03-11 17:26:16 +01:00
Jake Landis b5cb8453e4
Remove types from internal monitoring templates and bump to api 7 (#39888)
This commit removes the "doc" type from monitoring internal indexes.
The template still carries the "_doc" type since that is needed for
the internal representation.

This change impacts the following templates:
monitoring-alerts.json
monitoring-beats.json
monitoring-es.json
monitoring-kibana.json
monitoring-logstash.json

As part of the required changes, the system_api_version has been
bumped from "6" to "7" and support for version "2" has been dropped.

A new empty pipeline is now introduced for the version "7", and
the formerly empty "6" pipeline will now remove the type and re-direct
the request to the "7" index.

Additionally, to due to a difference in the internal representation
(which requires the inclusion of "_doc" type) and external representation
(which requires the exclusion of any type) a helper method is introduced
to help convert internal to external representation, and used by the
monitoring HTTP template exporter.

Relates #38637
2019-03-11 11:06:22 -05:00
Tim Brooks c2ffc2e3ea
Log send failure at debug level if channel closed (#39807)
Currently we log exceptions due to channel close at the debug level in
the normal exception handler. Currently we log all send failures due to
channel close at the warn level. This commit changes that to only log at
warn if the send failure is not due to channel closed. Additionally, it
adds the ssl engine closed as a channel close exception.
2019-03-11 10:04:59 -06:00
Ioannis Kakavas 0e1cf3e01d Allow IntegTestClusters to run with FIPS 140 JVMs (#39917)
The changes in #39732 mean that nodes in the IntegTest clusters will
now run with whichever java version is defined as `runtime.java` and
not JAVA_HOME anymore.
This means that these nodes will also run in JVM with fips approved
mode enabled and as such, need to have access to the password for the
BCFKS keystore that is used as the default keystore/truststore.

This change sets the two necessary system properties.

Resolves #39855
2019-03-11 16:23:39 +01:00
Armin Braun 972ebe1014
More Verbose Assertion in testSnapshotWithStuckNode (#39893)
* The test failure in #39852 is caused by a file in the initial repository when there should not be any
  * It seems that on a normal consistent file system no left-over file should exist ever here after the validation finishes and I can't reproduce or see any other path to a dangling file in the fresh respository
=> added a more verbose and strict assertion that will log what file is left over next time
* Relates #39852
2019-03-11 16:21:23 +01:00
Costin Leau 4957cad5bd
SQL: Wrap ZonedDateTime parameters inside scripts (#39911)
Painless allows ZonedDateTime objects to be passed natively to scripts
which creates problematic translate queries as the ZonedDateTime is
passed as a string instead.
Wrap this with a dedicated method to perform the conversion.

Fix #39877
2019-03-11 17:13:25 +02:00
Yannick Welsch 28a14e3e04
Add note about cluster state diffs (#39847)
Mentions cluster state diffs in CS publishing docs.
2019-03-11 15:36:41 +01:00
Yannick Welsch 93924f27bc
Check term earlier in publication process (#39909)
in order to avoid tripping assertPreviousStateConsistency.

Closes #39314
2019-03-11 15:32:58 +01:00
Tamara Braun 48addd1c46 Removed Unused Version Parameters in DocumentParser (#39863) 2019-03-11 10:08:05 -04:00
Benjamin Trent bc514608a4
[ML] changing bwc serialization versions after backports (#39889) 2019-03-11 07:49:30 -05:00
David Turner 470c78b941
Synchronize pendingOutgoingJoins (#39900)
Today we use a ConcurrentHashSet to track the in-flight outgoing joins in the
`JoinHelper`. This is fine for adding and removing elements but not for the
emptiness test in `isJoinPending()` which might return false if one join
finishes just after another one starts, even though joins were pending
throughout.

As used today this is ok: it means the node was trying to join a master but
this join attempt just finished unsuccessfully, and causes it to (rightfully)
reject a `FollowerCheck` from the failed master. However this kind of API
inconsistency is trappy and there is no need to be clever here, so this change
replaces the set with a `synchronizedSet()`.
2019-03-11 12:00:56 +00:00
David Kyle abb814012b
[ML] Correct small inconsistencies in ml APIs spec and docs (#39801) 2019-03-11 10:01:02 +00:00
Costin Leau ed8a1f9340
SQL: ConstantProcessor can now handle NamedWriteable (#39876)
Enhance ConstantProcessor to properly serialize complex objects
(Intervals) that have their own custom serialization/deserialization
mechanism

Fix #39875
2019-03-11 11:50:10 +02:00
Martijn van Groningen a9f43e2eff
Further tweak AutoFollowIT#testAutoFollowManyIndices:
* reduce the number of leader indices to be auto followed
* also check the number of follower indices being created
* also check the whether leader indices are marked as auto followed

Relates to #36761
2019-03-11 10:01:28 +01:00
Daniel Mitterdorfer 5798e1d505
Mute CcrRetentionLeaseIT#testRetentionLeaseRenewalIsCancelledWhenFollowingIsPaused (#39896)
Relates #39509
2019-03-11 08:47:42 +01:00
Armin Braun b30a61915d
Remove Dead Code from o.e.action (#39884)
* none of these are used
2019-03-10 17:05:09 +01:00
David Emanuel Buchmann dc2d7077fb plugins/repository-gcs: Update google-cloud-storage/core to 1.59.0 (#39748)
* plugins/repository-gcs: Update google-cloud-storage /
google-cloud-core to 1.59.0

* plugins: Update sha1 for google-cloud-core & google-cloud-storage
2019-03-10 11:03:16 -04:00
Benjamin Trent 1652fabd84
Skip ml df rolling-upgrade tests (#39886) 2019-03-10 09:04:30 -05:00
Armin Braun 6621ba5b03
Remove Obsolete BWC Serialization Logic (#39879)
* Remove Obsolete BWC Serialization Logic

* We only support 7.0+ now in 8.0 => all BwC serialization logic pertaining to 6.x and older is dead code
* remove obsolete tests
2019-03-09 20:35:59 +01:00
Benjamin Trent 92ac431c24
[ML] refactoring lazy query and agg parsing (#39776)
* [ML] refactoring lazy query and agg parsing

* Clean up and addressing PR comments

* removing unnecessary try/catch block

* removing bad call to logger

* removing unused import

* fixing bwc test failure due to serialization and config migrator test

* fixing style issues

* Adjusting DafafeedUpdate class serialization

* Adding todo for refactor in v8

* Making query non-optional so it does not write a boolean byte
2019-03-08 22:17:33 -06:00
Benjamin Trent 8f5e32a4d3
[Data-Frame] make the config be strictly parsed on _preview (#39713)
* [Data-Frame] make the config be strictly parsed on _preview

* adding test to verify strictly parsing

* adjusting test after master merge
2019-03-08 22:11:55 -06:00
Julie Tibshirani c94ebefbc6
Move validation from FieldTypeLookup to MapperMergeValidator. (#39814)
This commit consolidates more mapping validation logic into the same class.
`FieldTypeLookup` is now a bit simpler, and has the sole responsibility of quickly
resolving field names to their types.

I have a broader refactor planned around mapping merge validation, but this
change should at least be a step in the right direction.
2019-03-08 15:58:32 -08:00
MK Swanson 347e8cf69b
[DOCS] Edited intro sentence for clarity. Closes #39865 (#39866) 2019-03-08 17:29:37 -05:00
Mayya Sharipova aad93977f5 Correct errors in min_hash filter documentation
Related to #39671
2019-03-08 16:16:03 -05:00
Jason Tedor 1095e10b95
Fix Watcher stats class cast exception (#39821)
The watcher stats implementation tries to look at all queued watches
before preparing the result. We want to cast these to a
WatchExecutionTask to extract the context to prepare the stats for
queued watches. The problem is that not all tasks on the watcher queue
were WatchExecutionTask. This is because a manually executed watch was
not even at all wrapped in a WatchExecutionTask. Moreover, we were using
ExecutorService#submit(Runnable) which would wrap the Runnable in a
FutureTask<?>. This commit addresses this by using a WatchExecutionTask,
and also using ExecutorService#execute(Runnable) so that no wrapping
occurs. This will let us continue with the assumption that all queued
tasks are WatchExecutionTasks.
2019-03-08 14:51:39 -05:00
Tim Brooks 11fe52ad76
Add log warnings for long running event handling (#39729)
Recently we have had a number of test issues related to blocking
activity occuring on the io thread. This commit adds a log warning for
when handling event takes a >150 milliseconds. This is implemented
for the MockNioTransport which is the transport used in
ESIntegTestCase.
2019-03-08 12:50:24 -07:00
Jack Conradson 160adf742f
Add char tests and fix String to char cast (#39725)
This fixes a bug where a String to char cast in Painless could be done implicitly. 
It is now required that a String to char cast is explicit as documented in the 
existing specification. This also adds char and Character casting tests.
2019-03-08 11:15:12 -08:00
Lisa Cawley dda8cf82f8
[DOCS] Adds notable changes section (#38238) 2019-03-08 10:51:27 -08:00
Albert Zaharovits 89c5587264
Fix token invalidation when retries exhausted (#39799)
Fixes an error about missing to call the index invalidation listener
when retry count is exhausted but there are still tokens to be retried.
2019-03-08 20:18:00 +02:00