Shay Banon
e7e39936b8
add internal origin to delete by query
2013-09-22 23:56:30 +02:00
Simon Willnauer
0f17a4c61f
disable 'SearchWhileCreatingIndexTests' for now - fix is already in the pipeline
2013-09-22 22:45:39 +02:00
Simon Willnauer
5a365795ec
Added support for dynamic transport client ratio in tests.
...
Currently tests only run with node clients but eventually we want to
run all tests with randomly choosen node / transport clients. To enable
this during development and on test servers as a transition phase this
commit adds the ability to allow a fraction of the clients used in
tests to be transport clients. By default this is still disabled.
To enable transport clients in tests pass '-Dtests.client.ratio=[0..1]'
where '1.0' will force transport clients and '0.0' completely disables
them. If an empty string is passed the ratio is chosen at random for
each test.
2013-09-22 22:25:30 +02:00
Shay Banon
ab6715b292
move the internal source for a refresh to be required
2013-09-22 20:24:05 +02:00
Shay Banon
78af818d72
add internal source to acquire searcher
...
add a source indicating why the searcher was acquired
2013-09-22 18:29:23 +02:00
Shay Banon
167538ef0d
add internal source to refresh
...
can be used to more easily understand where its coming from
2013-09-22 17:58:40 +02:00
Alexander Reelsen
57f962d620
Add completion field support in Rest nodes stats
...
Closes #3746
2013-09-22 15:02:05 +02:00
Simon Willnauer
0909055e83
Cleanup Integration Tests
2013-09-22 12:05:58 +02:00
Simon Willnauer
4b5935a708
Small cleanups in TransportClient et.al
...
Catching Throwable instead of Exception in TransportClient
and TransportClientNodesService and restore interrupted flag
if interrupt exception is caught and ignored
2013-09-22 12:05:57 +02:00
Simon Willnauer
58ea539a26
Add missing TransportHandler for clear_sc (ClearScroll)
2013-09-22 12:05:57 +02:00
Simon Willnauer
cadbcfeb24
Call validate in TransportClients before request is send
2013-09-22 12:05:57 +02:00
Simon Willnauer
c8192dd1f2
Fail GetIndexTemplate if names it null or empty
2013-09-22 12:05:57 +02:00
Simon Willnauer
e1aa91dc81
Add listener nodes to nodes list if 'sniff' is true
...
TransportClient doesn't add the initial nodes to the nodes list
if it doesn't retrieve any nodes from the listeners which can cause
the transport client to throw a 'NoNodeAvailableException' if the
'sniff' response didn't return any nodes. This situation can occure
if the client tries to get the listener nodes cluster state while that
node is not yet connected to any other nodes.
2013-09-22 12:05:57 +02:00
Martijn van Groningen
7c032f6af6
Fixed serialisation bug for multi percolate request and response classes.
...
This bug manifests when running with transport client.
2013-09-22 12:01:27 +02:00
Shay Banon
74e8d299d6
fix log to trace
2013-09-22 03:19:08 +02:00
Luca Cavanna
b28c82a1e6
Added @TestLogging to all methods to see which shards we refresh and which ones we search on
...
Increased wait timeout and added multiple iterations there as well, one is not enough. We want to verify whether the problem gets fixed later on.
2013-09-21 20:10:43 +02:00
Andrew Raines
953bbe4291
More AbstractIntegrationTest
2013-09-21 00:10:16 -05:00
Andrew Raines
6a18d05393
Add/fix index selectors.
...
Closes #3758 .
2013-09-20 22:25:33 -05:00
Luca Cavanna
2ca1d79530
Moved SimpleIndexStateTests to AbstractIntegrationTest
2013-09-21 02:11:36 +02:00
Shay Banon
c6eebf0515
don't clear gateways in reroute test
...
- also remove test logging from percolator
2013-09-21 01:55:11 +02:00
Luca Cavanna
52e9e753e6
Set nowInMillis to search context created by the explain api so that "NOW" can be used within queries
...
Added nowInMillis to ExplainRequest in a backwards compatible manner
Fixes #3626
2013-09-20 21:32:52 +02:00
Luca Cavanna
0d3895533c
Set nowInMillis to search context created by the validate query api so that "NOW" can be used within queries
...
Added nowInMillis to ShardValidateQueryRequest in a backwards compatible manner
Fixes #3629
2013-09-20 21:32:13 +02:00
Luca Cavanna
06bfe0550d
Set nowInMillis to search context created by the count api so that "NOW" can be used within queries
...
Added nowInMillis to ShardCountRequest in a backwards compatible manner
Fixes #3625
2013-09-20 21:31:00 +02:00
Martijn van Groningen
d365a4ccba
Added nested filter join option to the docs.
...
Closes #3738
2013-09-20 21:22:56 +02:00
iksnalybok
be35b44df1
Allow slop = -1 in span queries
...
Closes #3673
2013-09-20 21:19:31 +02:00
Simon Willnauer
d662238221
Use node clients for now until tests stabelize
2013-09-20 20:26:09 +02:00
Martijn van Groningen
7ea21c75db
Removed ClusterScope annotation
2013-09-20 19:25:50 +02:00
Martijn van Groningen
246752c1f4
Moved ConcurrentPercolatorTests over to AbstractIntegrationTest
2013-09-20 19:21:53 +02:00
Brusic
ab05f929fe
Allow the `_boost` field to be indexed and stored.
...
Closes #3752
2013-09-20 18:58:57 +02:00
Shay Banon
a1185a93d0
fix javadoc
2013-09-20 16:56:33 +02:00
Martijn van Groningen
bd6723f426
Removed usage AbstractIntegrationTest#updateClusterSettings
2013-09-20 16:36:46 +02:00
Martijn van Groningen
5558e884be
Removed AbstractIntegrationTest#updateClusterSettings
2013-09-20 16:36:23 +02:00
Simon Willnauer
e97aa9918a
Cut over NoMasterNodeTests to AbstractIntegrationTest
2013-09-20 16:04:33 +02:00
Alexander Reelsen
1a34172a6c
Changed SimpleBlocksTests and CustomHighlighterSearchTests to use AbstractIntegrationTest
2013-09-20 15:31:37 +02:00
Martijn van Groningen
be2acaa629
fixed compile error
2013-09-20 15:30:05 +02:00
Martijn van Groningen
846b833539
- Added TestCluster#getInstances(Class) method.
2013-09-20 15:08:49 +02:00
Martijn van Groningen
f6c2d9caf3
- Cut DeletePercolatorTypeTests and TTLPercolatorTests over to the AbstractIntegrationTest.
2013-09-20 15:08:06 +02:00
Shay Banon
c3ecd6fd1b
REST: Add newline to response when using pretty flag
...
closes #3748
relates to #3422
2013-09-20 14:55:35 +02:00
Shay Banon
359d14ddc5
doc processors setting
2013-09-20 14:55:35 +02:00
Alexander Reelsen
2624c90efb
Using AbstractIntegrationTest in SimpleTTLTests and FunctionScorePluginTests
2013-09-20 13:36:50 +02:00
Simon Willnauer
30d7faeba2
Cut over more tests to AbstractIntegrationTest
2013-09-20 13:31:46 +02:00
Shay Banon
29c0f27a9e
fix thread pool docs to remove blocking
2013-09-20 12:31:17 +02:00
Shay Banon
b092a0dade
use the same client and preference when failing
2013-09-19 18:58:07 +02:00
Luca Cavanna
46753122aa
Log line set to TRACE
...
The default log level for the action package is DEBUG, we don't want to print out lines like this by default in our distribution.
2013-09-19 18:29:55 +02:00
Simon Willnauer
575d6b0321
Cleanup test classes and add Scope support for TestCluster
...
TestCluster can currently only be used in a globally shared scope.
This commit adds the ability to use the TestCluster in 3 different
scopes per test-suite. The scopes are 'Global', 'Suite' and 'Test'
where the cluster is shared across all tests, across all test methods or
not at all respectivly.
Subclasses of AbstractIntegrationTest (formerly AbstractSharedClusterTest)
can add an annotation if they need a different scope than Global (default):
```
@ClusterScope(scope=Scope.Suite, numNodes=1)
```
This also allows to specify the number of shared nodes in that TestCluster
that are available when a test starts.
The cleanups in this commit include:
- s/Elasticsearch/ElasticSearch/g on test classes
- Move test classes in org.elasticsearch.test
2013-09-19 17:48:22 +02:00
Simon Willnauer
de3cde3e1e
Rename Engine#seacher() into Engine#acquireSearcher()
...
The name should reflect that the caller is responsible for
releaseing the searcher again.
2013-09-19 16:43:20 +02:00
Costin Leau
9fe99aa6e9
detect JRE (vs JDK) and invalid JAVA_HOME
...
fixes #3739
2013-09-19 17:32:33 +03:00
Simon Willnauer
04deb80634
Add asserting searcher to track searcher references
...
This assertion module also injects an AssertingIndexSearcher that
checks if our queries are all compliant with the lucene specification
which is improtant for future updates and changes in the upstream project.
2013-09-19 16:21:45 +02:00
Shay Banon
bb4f30c76c
add explicit refresh post failure to test
...
log the hits post explicit refresh, and post explicit wait for green
2013-09-19 16:18:04 +02:00
Alexander Reelsen
8ab77651ad
Added more information to assertion in completion suggest tests
2013-09-19 15:02:11 +02:00