Commit Graph

19614 Commits

Author SHA1 Message Date
Jason Tedor 2de4a7a666 Log shard ID in ShardStateAction
This commit amends the logging statement in two places in
ShardStateAction to log the full shard ID instead of just the numerical
shard ID (without the index name).
2016-01-24 09:54:53 -05:00
Ryan Ernst b349746bbe Fix repro line for tests to use language tag
See https://issues.apache.org/jira/browse/LUCENE-6978

Also fixed date histogram test to use its version constant as a string
setting.
2016-01-22 22:54:49 -08:00
Boaz Leskes 30bfde9a2d Another fix of check for required settings in FsRepository
This time with the right setting
2016-01-22 18:01:27 +01:00
Boaz Leskes dc0fb29ad9 Fix check for required settings in FsRepository 2016-01-22 17:51:17 +01:00
Boaz Leskes ec31feca93 Settings: migrate network service to the new infra
This commit migrates all the settings under network service to the new settings infra.

It also adds some chaining utils to make fall back settings slightly less verbose.

Breaking (but I think acceptable)  - network.tcp.no_delay and network.tcp.keep_alive used to accept the value `default` which make us not set them at all on netty. Our default was true so we weren't using this feature. I removed it and now we only accept a true boolean.
2016-01-22 16:59:07 +01:00
Luca Cavanna 817b4bd02a Merge pull request #16186 from javanna/enhancement/simplify_date_format
Date processor: simplify switch to identify the specified date format
2016-01-22 16:52:21 +01:00
javanna 720c531364 [TEST] remove check for jvm true, site plugins have been removed 2016-01-22 16:51:51 +01:00
javanna 30cbbc55b6 remove old todo in DateProcessor 2016-01-22 16:50:50 +01:00
Tanguy Leroux ae5da3432c Migrate repository settings to the new settings API 2016-01-22 16:41:56 +01:00
javanna 38ea9c7d13 Date processor: simplify switch to identify the specified date format 2016-01-22 16:28:04 +01:00
markharwood d371ef35f4 Settings - change over to o.e.common.settings.Setting for http settings:
http.cors.allow-credentials
http.cors.enabled
http.detailed_errors.enabled
http.enabled
http.pipelining
http.cors.max-age
2016-01-22 15:13:11 +00:00
Simon Willnauer 37d7d6c23c Merge pull request #16172 from s1monw/convert_settings
Convert several node and test level settings
2016-01-22 16:09:32 +01:00
Simon Willnauer 9b3559f473 Remove `test.cluster.node.seed` and special case `tests.portsfile`
* `test.cluster.node.seed` was only used in one place where it wasn't adding value and was now replaced with a constant
 * `tests.portsfile` is now an official setting and has been renamed to `node.portsfile`

this commit also convert `search.default_keep_alive` and `search.keep_alive_interval` to the new settings infrastrucutre
2016-01-22 15:47:32 +01:00
Yannick Welsch b750330951 Merge pull request #16182 from ywelsch/enhance/discovery-settings
Move discovery.* settings to new setting infrastructure
2016-01-22 15:36:54 +01:00
Yannick Welsch 296b48b9d1 Move discovery.* settings to new setting infrastructure
Closes #16182
2016-01-22 15:35:00 +01:00
Simon Willnauer 4c7f3d40e2 Merge pull request #16183 from s1monw/convert_client_settings
Convert client.transport settings to new infra
2016-01-22 15:25:56 +01:00
Christoph Büscher 513f4e6c57 Add serialization and fromXContent to SmoothingModels
PhraseSuggestionBuilder uses three smoothing models internally.
In order to enable proper serialization / parsing from xContent
to the phrase suggester later, this change starts by making the
smoothing models writable, adding hashCode/equals and fromXContent.
2016-01-22 15:19:17 +01:00
Daniel Mitterdorfer 9a1fdb6987 Merge remote-tracking branch 'danielmitterdorfer/convert-path-settings' 2016-01-22 15:18:18 +01:00
Simon Willnauer 34b2673d42 Convert client.transport settings to new infra 2016-01-22 15:14:13 +01:00
Daniel Mitterdorfer e9bb3d31a3 Convert "path.*" and "pidfile" to new settings infra 2016-01-22 15:14:13 +01:00
Jim Ferenczi ad7fec87b0 Merge pull request #16177 from jimferenczi/convert_indices_settings
Convert "indices.*" settings to new infra.
2016-01-22 15:08:53 +01:00
Jim Ferenczi 37d02505aa Covers Simon's comments 2016-01-22 14:30:32 +01:00
Kevin Adams 768d171f77 Timezone: use forward slash
Using a backslash causes errors when querying elasticsearch, but changing the back slash to forward slash on the timezone fixes it.

Closes #16148
2016-01-22 14:26:49 +01:00
Adrien Grand dc69d857bf Make disabled fielddata loading fail earlier.
Currently this fails when loading data from a segment, which means that it will
never fail on an empty index since it does not have segments.

Closes #16135
2016-01-22 14:12:55 +01:00
Clinton Gormley c6956a9dc9 Merge pull request #16171 from dmydlarz/patch-1
Fix missing break line before unordered item list
2016-01-22 14:01:49 +01:00
Jim Ferenczi 9c286b601e Convert "indices.*" settings to new infra. 2016-01-22 13:51:06 +01:00
Adrien Grand 9c427e45f1 Merge pull request #16175 from jpountz/enhancement/migrate_gateway_settings
Migrate gateway settings to the new settings API.
2016-01-22 13:06:05 +01:00
Glen Smith f402f427cc Update function-score-query.asciidoc
Make explanatory text match value used in example body

Closes #16165
2016-01-22 13:02:04 +01:00
Luca Cavanna 88e7830a53 Merge pull request #16173 from javanna/enhancement/geoip_location_object
Geoip processor: remove redundant latitude and longitude fields and make location an object with lat and lon subfields
2016-01-22 12:59:17 +01:00
Adrien Grand ac174aabb0 Migrate gateway settings to the new settings API. 2016-01-22 12:49:31 +01:00
Jason Tedor fa4e6020cd Break out packaging breaking changes 2016-01-22 06:28:13 -05:00
javanna 4ad5e67433 Geoip processor: remove redundant latitude and longitude fields and make location an object with lat and lon subfields 2016-01-22 12:26:39 +01:00
Jason Tedor 917a57659a Merge pull request #16159 from jasontedor/systemd-standard-output
Default standard output to the journal in systemd

Relates #15315, relates #16134
2016-01-22 06:13:07 -05:00
javanna 17a36aecff [TEST] Simplify SplitProcessorTests#testSplitAppendable to not require compound and append processor 2016-01-22 12:03:36 +01:00
javanna e860f9ddda Split processor: specify known size at list creation 2016-01-22 12:02:40 +01:00
Simon Willnauer 20c3cbf98d [TEST] only pass valid random settings 2016-01-22 11:42:18 +01:00
Simon Willnauer 1fb2f22f32 Convert to the new settings infra 2016-01-22 11:25:26 +01:00
Simon Willnauer cbd0a8b067 Add a testcase for #16142 that fails every time we use HandleTrackingFS
This commit also uses a try/finally with success pattern instead of catching
and excpetion. TranslogTests reproduce with `-Dtests.seed=DF6A38BAE739227A` every
time.

Closes #16142
2016-01-22 10:41:10 +01:00
Boaz Leskes fbca68a7c4 Translog: close channel on failures while converting a writer to a reader
TranslogWriter.closeIntoReader transfers the file ownership from a writer to a reader and closes the writer. If the transfer fails, we need to make sure we closed the underlying channel as the writer is already closes.

See: http://build-us-00.elastic.co/job/es_core_master_regression/4355

Relates to #16142
2016-01-22 10:15:40 +01:00
Simon Willnauer 9110f4f654 Merge pull request #16168 from s1monw/upgrade_on_any_version
Run Metadata upgrade tool on every version
2016-01-22 10:04:52 +01:00
Simon Willnauer dbff74308b fix typo 2016-01-22 09:48:41 +01:00
Simon Willnauer fcdb24bc9d Run Metadata upgrade tool on every version
Today we run the metadata upgrade only on the current major version
but this should run on every upgrade at least once to ensure we don't miss
an important check or upgrade.
2016-01-22 09:30:07 +01:00
Jim Ferenczi 08a0e40d75 Merge pull request #16155 from jimferenczi/fix/min_should_match
Do not apply minimum_should_match on auto generated boolean query if the coordination factor is disabled.
2016-01-22 09:29:33 +01:00
Simon Willnauer ff697c9ac2 Merge pull request #16156 from s1monw/check_for_invalid_settings_on_upgrade
Check for invalid index settings on metadata upgrade
2016-01-22 09:04:32 +01:00
Ryan Ernst df24019261 Merge pull request #16038 from rjernst/remove_site_plugin
Plugins: Remove site plugins
2016-01-21 12:32:22 -08:00
Jason Tedor 26e5cd651e Default standard output to the journal in systemd
This commit modifies the default setting for standard output in the
systemd configuration to the journal instead of /dev/null. This is to
address a user pain point where Elasticsearch would fail to start but
the error message would be sent to standard output and therefore
/dev/null leading to difficult-to-debug situations.
2016-01-21 15:09:57 -05:00
Tal Levy 8f35e459d1 Merge pull request #16157 from talevy/tag_sans_processor
[Ingest] rename processor_tag to tag
2016-01-21 11:20:42 -08:00
Jason Tedor 7de8d2881b Fix shard ID logging in DWSDIT#testAckedIndexing
This commit fixes a minor issue with the shard ID that is logged while
indexing in DiscoveryWithServiceDisruptionsIT#testAckedIndexing. The
issue is that the operation routing hash could lead to a negative
remainder modulo the number of primaries (if the hash itself is
negative) but should instead be the normalized positive remainder. This
issue only impacts the logging of the shard ID as the actual shard ID
used during indexing is computed elsewhere but would cause the shard ID
in the affected logging statement to not match shard IDs that are logged
elsewhere.
2016-01-21 13:55:53 -05:00
Clinton Gormley 24ac9506bd Reverted #16048 2016-01-21 18:07:38 +01:00
Tal Levy 3a6c2d008e rename processor_tag to tag 2016-01-21 09:05:42 -08:00