David Pilato
aebd8da7a4
Merge remote-tracking branch 'origin/master'
2015-09-17 22:39:20 +02:00
Michael McCandless
3a33388872
Catch IndexWriter 'files do not exist' assertion and throw EngineCreationFailureExc
2015-09-17 16:19:03 -04:00
Robert Muir
ffe50d5021
really get groovy indy working
2015-09-17 16:09:21 -04:00
Robert Muir
3e626d0dd8
add paranoia
2015-09-17 16:09:20 -04:00
Robert Muir
7828460ef6
Give groovy scripts read access to groovy.indy.logging, needed for
...
IndyInterface bootstrap.
2015-09-17 16:09:20 -04:00
Chris Earle
6a779fc730
Adding support for invokedynamic with Groovy scripts.
2015-09-17 16:09:20 -04:00
Nik Everett
c427b3e9c2
[test] Remove esoteric apt-get in Vagrantfile
...
Removes an esoteric `apt-get update` variant used in Vagrantfile that was
causing only parts of the apt repository to update. That was the point of
the command but when it would leave the repository only half built which
made installing anything but Java difficult. The speed isn't worth the
complexity.
2015-09-17 15:48:10 -04:00
David Pilato
97ae657231
Merge remote-tracking branch 'origin/master'
2015-09-17 21:44:25 +02:00
Nicholas Knize
9a67d6641b
Fix RandomShapeGenerator to retry on JTS Assertion and RandomShapeException
...
A JTS bug causes a misinterpretation of polygon coordinates leading to an unhelpful "geom" AssertionError. While this assertion occurs approx 0.02% of the time it can lead to a misleading test failure. This patch catches the geom assertion and retries randomShapeCreation. For safety a threshold is set to prevent unlimited retrying - though 1 retry is typically sufficient for correcting the invalid shape.
closes #13551
2015-09-17 13:44:04 -05:00
Nicholas Knize
584aaa08f8
Fix RandomShapeGenerator to retry on JTS Assertion and RandomShapeException
...
A JTS bug causes a misinterpretation of polygon coordinates leading to an unhelpful "geom" AssertionError. While this assertion occurs approx 0.02% of the time it can lead to a misleading test failure. This patch catches the geom assertion and retries randomShapeCreation. For safety a threshold is set to prevent unlimited retrying - though 1 retry is typically sufficient for correcting the invalid shape.
closes #13551
2015-09-17 13:23:46 -05:00
David Pilato
422cfa27c0
Merge branch 'maven/elasticsearch-already-excluded'
2015-09-17 18:10:04 +02:00
Robert Muir
7898ba103e
Merge pull request #13638 from rmuir/more_realistic_unit_tests_for_plugins_like_this
...
Better simulate problematic plugins permissions in unit tests.
2015-09-17 12:06:08 -04:00
Robert Muir
0fdc16927e
Elaborate more on how this works
2015-09-17 11:51:00 -04:00
Britta Weber
dcabfac507
Merge pull request #13640 from brwe/plugins-custom-dir-bats
...
[test] start elasticsearch and verify it does what it should after in…
2015-09-17 17:49:05 +02:00
Britta Weber
c9cd70d419
[test] start elasticsearch and verify it does what it should after installing in custom dir
2015-09-17 17:24:13 +02:00
Robert Muir
d7a07d7a27
Fix missing AccessControllerBlock in GCE code
...
This fix imported from #13612
2015-09-17 11:03:50 -04:00
David Pilato
71ec1f09e3
Add documentation for setting network.host with azure discovery
...
With 2.0, we now bind to `localhost` by default instead of binding to the network card and use its IP address.
When the discovery plugin gets from Azure API the list of nodes that should form the cluster, this list is pinged then. But as each node is bound to `localhost`, ping does not get an answer and the node elects itself as the master node.
Closes #13591
2015-09-17 16:29:02 +02:00
Robert Muir
9219af8106
Better simulate problematic plugins permissions in unit tests.
...
We don't have a plugin .zip for unit tests, so we can't do it
correctly. But we can approximate it better, so that if code
is simply missing an AccessController block at least tests will fail.
2015-09-17 10:17:17 -04:00
Simon Willnauer
66c53e7f91
Merge pull request #13634 from clintongormley/version_bump_master
...
Version bump master
2015-09-17 16:10:32 +02:00
Clinton Gormley
312bf5a011
Remove workaround for V2_0_0_beta1 in VersionTests
2015-09-17 15:48:05 +02:00
Clinton Gormley
f20473a2e4
Add version 2.0.0-beta2
2015-09-17 15:41:34 +02:00
Clinton Gormley
a7042fd809
Add bwc indices for 2.0.0-beta1 and 2.0.0-beta2
2015-09-17 15:41:34 +02:00
André Carvalho
9ab6e01f4d
Adds a validation for plugins script to check if java is set
...
This does the same validation as in elasticearch bin script
2015-09-17 10:34:36 -03:00
Simon Willnauer
ec6643b994
bring back fully qualified classname
2015-09-17 14:58:40 +02:00
Simon Willnauer
effaaf0566
Rename QueryParsingException to a more generic ParsingException
...
this allows us to reuse this exception in more places rather than adding
new ones that are basically just subclasses.
2015-09-17 14:56:21 +02:00
Boaz Leskes
a1e83f6f4f
Test: don't use setDaemon in DiscoveryWithServiceDisruptionsIT.
2015-09-17 14:24:48 +02:00
Boaz Leskes
39f86a1abe
Test: move LongGCDisruption from Thread.getAllStackTraces() to Thread.enumerate()
...
To allow it to run without the "modifyThreadGroup" permission.
2015-09-17 14:23:57 +02:00
Christoph Büscher
887399eebf
Query Refactoring: moving validation to constructors and setters
...
This PR is an initial step to move the query validation we started
to collect in the validate() method to the corresponding setters
and constructors.
2015-09-17 13:57:34 +02:00
Martijn van Groningen
1a8495d1d6
tests: Add to ability for a integration test to prevent specific templates from being wiped between tests.
2015-09-17 12:34:46 +02:00
Tanguy Leroux
5b0ad2272e
[test] Fix search context check in DeleteByQueryTests
...
Closes #13580
2015-09-17 12:17:40 +02:00
Simon Willnauer
e9713cbb7b
Append new exceptions to the end otherwise backporting won't work
2015-09-17 11:14:59 +02:00
Simon Willnauer
af9166d84d
Use a dedicated id to serialize EsExceptions instead of it's class name.
...
Classnames change quickly due to refactorings etc. If that happens in a minor release
we loose the ability to deserialize the exceptoin coming from another node sicne we today
look it up by classname. This change uses a dedicated static id instead of the classname
to lookup the actual class.
2015-09-17 11:08:09 +02:00
Britta Weber
07de30272b
Merge pull request #13617 from brwe/plugin-list-vagrant-test
...
[test] add test for 'plugin list'
2015-09-17 10:26:35 +02:00
Britta Weber
d4161ff938
[test] add test for 'plugin list'
...
Tests that the plugins that are reported with 'plugin list' are the
same as in the plugins pom.
2015-09-17 10:25:35 +02:00
Robert Muir
a307d3b021
Merge pull request #13628 from rmuir/insecure_plugin_tests_with_multiple_roots
...
Insecure plugin tests with multiple roots
2015-09-17 02:52:05 -04:00
Robert Muir
6cfbf9cf54
Revert "quiet flakey gce tests"
...
This reverts commit 7eef7e42d4
.
2015-09-17 02:32:51 -04:00
Robert Muir
5e15ba90bb
Revert "disable unit tests until they work"
...
This reverts commit 606cc456d2
.
2015-09-17 02:32:33 -04:00
Robert Muir
dc0bebada1
Support tests for insecure plugins on systems with multiple fs roots.
2015-09-17 02:30:45 -04:00
Robert Muir
d4e53d8393
fix compilation with ECJ (eclipse IDE etc)
2015-09-16 14:33:39 -04:00
Ryan Ernst
b14326d494
Merge pull request #13611 from rjernst/spec_in_resources
...
Move rest-api-spec for plugins into test resources
2015-09-16 11:15:35 -07:00
Ryan Ernst
606cc456d2
disable unit tests until they work
2015-09-16 10:26:01 -07:00
Ryan Ernst
7eef7e42d4
quiet flakey gce tests
2015-09-16 09:59:38 -07:00
Robert Muir
a0eabda020
Merge pull request #13620 from rmuir/kill_more_bogus_permissions
...
Remove some bogus permissions only needed for tests.
2015-09-16 12:18:20 -04:00
Robert Muir
09d2188869
Merge branch 'master' into kill_more_bogus_permissions
2015-09-16 12:17:43 -04:00
Christoph Büscher
125be0a05f
Tests: Fix HighlighterSearchIT#testMultiMatchQueryHighlight, dont use null type
2015-09-16 18:14:53 +02:00
Lee Hinman
37ba02ab21
[TEST] Fix incorrect location for greaterThanOrEqual fix
2015-09-16 10:10:42 -06:00
Robert Muir
ba934c6bee
Remove some bogus permissions only needed for tests.
...
Especially the worst of the worst with thread permissions: for example,
this prevents some code from starting daemon thread that will outlive
the elasticsearch process and hang around doing evil shit.
2015-09-16 12:07:18 -04:00
Nik Everett
037a7583af
Merge pull request #13262 from nik9000/package_test_for_script_and_template
...
Packaging test for filesystem scripts
2015-09-16 10:45:40 -04:00
Nik Everett
8d02efd088
[test] Packaging test for filesystem scripts
...
Adds a tests for loading scripts from the filesystem for search templates
and for search filters.
Closes #13184
2015-09-16 10:44:21 -04:00
Shaunak Kashyap
29165c59f5
Merge pull request #13598 from ycombinator/cloud-gce-doc-update
...
Cloud GCE documentation update
2015-09-16 07:26:56 -07:00