Commit Graph

6853 Commits

Author SHA1 Message Date
Boaz Leskes 497032e6e7 FuzzyLikeThisFieldQueryBuilder now defaults failOnUnsupportedField to true, to be consistent with REST API.
Closes #3374
2013-07-24 09:54:23 +02:00
Honza Kral e925ea3b78 validate query 2013-07-24 04:12:03 +02:00
Honza Kral 12597309c6 Optimize tests 2013-07-24 03:57:58 +02:00
Honza Kral 938ffdfea4 indices.status 2013-07-24 03:51:57 +02:00
Honza Kral c447fe5002 open/close index tests 2013-07-24 03:47:52 +02:00
Honza Kral fb512495cb use flush instead of cluster health to avoid writing a separate test 2013-07-24 03:41:02 +02:00
Shay Banon b85bcde640 better logging on failure to create index
if the index already exists, trace log it, since it might happen as a result of multiple index requests at the same time creating the index, all other ones, should be debug and not warn in the same spirit of other APIs
2013-07-24 01:58:31 +02:00
Shay Banon bb6df34671 bulk refresh and update mapping cluster events
try and bulk as much as possible refresh and update mapping events, so they will all be processed at a single go, resulting in less cluster change events, and also reduce the load of multiple changes to the same index
also, change the prio for those to HIGH, since we want URGENT ones (like create index, delete index) to execute
2013-07-24 01:58:11 +02:00
Honza Kral 85616ca620 Basic explain tests 2013-07-24 01:54:12 +02:00
Honza Kral 738faec713 Super simple super useless mlt test 2013-07-24 01:47:28 +02:00
Honza Kral 2e06c35b98 Percolate tests 2013-07-24 01:39:20 +02:00
Honza Kral d24fa52099 Warmer APIs 2013-07-24 01:28:27 +02:00
Honza Kral f147872fd9 update_aliases basic tests 2013-07-24 01:17:51 +02:00
Honza Kral b1284d0301 ticket #3259 still isn't done 2013-07-23 20:42:20 +02:00
Honza Kral 2527f5a9fa Make put_mapping tests work for 0.90.2 and master 2013-07-23 20:26:58 +02:00
Honza Kral 3e01daf34f enable skip to be in the middle of a test 2013-07-23 20:24:46 +02:00
Honza Kral 434b70ba91 Siggest api broken in current release 2013-07-23 20:10:59 +02:00
Honza Kral 82de8c35e7 Delete ignores parent param 2013-07-23 20:10:48 +02:00
Honza Kral 875de1a5a6 suggest api tests 2013-07-23 19:26:22 +02:00
Honza Kral 77fe6f25e2 formattings issues 2013-07-23 19:20:40 +02:00
Honza Kral d029c1aaca Added regression tests for #3363 and #3364 2013-07-23 18:55:07 +02:00
Shay Banon 6a5d2bf767 remove cached stream output
start to build the infra for simpler migration to netty 4, starting with removing the cache stream output handling as it will come built in
2013-07-23 15:56:48 +02:00
Martijn van Groningen b52243cdc2 Added cluster pending tasks api.
Closes #3368
2013-07-23 15:33:29 +02:00
Simon Willnauer 69a7f8d71d Removed XPatternCaptureGroupTokenFilter 2013-07-23 13:55:20 +02:00
Simon Willnauer 2e9851138e Upgrade to Lucene 4.4 2013-07-23 13:55:15 +02:00
Shay Banon 92a7030558 Add optimize thread pool (size 1) dedicated to perform explicit optimize API
Have a dedicated thread pool for explicit optimize calls (shard level optimize operations). By default, the size should be 1 to work the same with how things work currently allowing for only 1 shard level optimize on a node.

The change allows to see the optimize thread pool stats now, and potentially increase the thread pool size for beefy machines.

closes #3366
2013-07-23 11:05:15 +02:00
Shay Banon f9ce791578 make sure we update last failure 2013-07-23 10:54:42 +02:00
Martijn van Groningen aa5c15a1d7 Wait a bit longer for ttl to have occurred 2013-07-23 00:29:11 +02:00
Martijn van Groningen 18141b8da0 Fix SimplePercolatorTests#testPercolateStatistics 2013-07-23 00:10:27 +02:00
Shay Banon 4930b93c26 move master actions to accept a lister, improve cluster service state execution
- master actions many times end up being executed on the cluster service, so there is no need to block them on the management thread pool to wait for a response, this remove the load on the management thread pool, and also simplifies the code implementing it
- cluster service state update exception handling was improved to include a callback when a failure happens during state update execution, this makes sure that we catch all relevant exceptions and invoke the callback, as well as simplify the code of cluster state update tasks, as they can throw failures from within the execute method and then handle them properly
2013-07-23 00:08:45 +02:00
Honza Kral 313cd4ea59 add master_timeout to cluster state changing operations 2013-07-23 00:06:25 +02:00
Adrien Grand e943cc81a5 Add FastVectorHighlighter support for more complex queries.
FastVectorHighlighter fails at highlighting some complex queries such as
multi phrase queries which have two terms at the same position. This can be
easily triggered by running a `match_phrase` query with an analyzer which
outputs synonyms such as SynonymFilter or WordDelimiterFilter.

Close #3357
2013-07-22 19:43:22 +02:00
Shay Banon 6b21414520 should be 500... 2013-07-22 17:53:44 +02:00
Shay Banon c766f6bd97 Cluster State Update APIs (master node) to respect master_timeout better
also respect the timeout when trying to obtain the md lock
relates #3365
2013-07-22 17:53:18 +02:00
Shay Banon 235a68c3bd Cluster State Update APIs (master node) to respect master_timeout better
Currently, the master node might be processing too many cluster state events, and then be blocked on waiting for its respective even to be processed. We can use the new cluster state update timeout support to use the master_timeout value and respect it.

closes #3365
2013-07-22 16:58:00 +02:00
Luca Cavanna 0b33394476 Added alias action validation
Moved alias action validation to IndicesAliasesRequest, so that Java api and RestIndexPutAliasAction can benefit from it too.
Added check in MetaDataIndexAliasesService too.

Closes #3363
2013-07-22 15:27:20 +02:00
Martijn van Groningen 2f7d1189b1 Also serialize the routing and preference 2013-07-22 15:16:29 +02:00
Martijn van Groningen d310b94904 Fix ConcurrentPercolatorTests replaces CountDownLatches array by a Semaphore.
The writes to the CountDownLatches array wasn't visible by all threads when the countdown latch array slots were re-initialized.
2013-07-22 11:32:55 +02:00
Shay Banon 4da7086df8 catch failures and notify the listener in aliases action handling 2013-07-22 11:19:23 +02:00
Shay Banon 7a9350c9a1 Transport: Add a dedicated ping channel
Today, we have a low/med/high channel groups in our transport layer. High is used to publish cluster state and send ping requests. Sometimes, the overhead of publishing large cluster states can interfere with ping requests.

Introduce a new, dedicated ping channel (with size 1) to have a channel that only handles ping requests.
closes #3362
2013-07-22 10:29:57 +02:00
Shay Banon e2961c0c7a add ability to associate a timeout with a priority executor
enhancement that can be used later to timeout tasks that are pending, also added the ability to get the pending task list from the executor
2013-07-22 09:16:56 +02:00
Martijn van Groningen e8ff7de6b8 Test to some extent the time spent on percolating. 2013-07-22 09:02:27 +02:00
Honza Kral cca1c50632 Add a comment about using \. to escape dots in yaml lookup paths 2013-07-22 00:51:35 +02:00
Honza Kral 2a7d2f06d8 Indices settings tests 2013-07-22 00:49:53 +02:00
Honza Kral 1e98b711ca Delete by query tests 2013-07-22 00:40:20 +02:00
Honza Kral 2fb0ec9feb msearch tests 2013-07-22 00:40:12 +02:00
Shay Banon bd52d61d5d reroute post shard started should have HIGH prio as well 2013-07-21 15:21:22 +02:00
Shay Banon f2614b22de Zen Discovery Cluster Events to have Priority.URGENT
Master node cluster state events resulting in zen discovery (node gets added, removed, for example) should be processed with priority URGENT as its always better to process them as fast as possible, and not let other events get in the way.
closes #3361
2013-07-21 14:57:26 +02:00
Shay Banon 6a25395c97 fix percolate stats tests failures 2013-07-21 14:25:26 +02:00
Honza Kral efb28d47da Bulk tests 2013-07-20 21:12:39 +02:00