Commit Graph

13644 Commits

Author SHA1 Message Date
Simon Willnauer 6046ecbab3 Prevent PercolateResponse from serializing negative VLong
We are using a a VLong to serialize the PercolateResponse#tookInMillis. This
can due to several `System.currentTimeMillis()` implemenation details be negative.
We should prevent the negavite value for being serialized as a VLong and make sure
we use a valid value for this in the first place

Closes #11138
2015-05-13 10:22:08 +02:00
Adrien Grand f22935b1a8 Query DSL: Make geo filters queries.
This commit replaces geo filters with queries that support two-phase iteration.
2015-05-13 09:10:49 +02:00
Ryan Ernst 1b15333f34 Merge pull request #11074 from rjernst/pr/include-in-object-removal
Mappings: Remove ability to set meta fields inside documents
2015-05-12 23:24:36 -07:00
Ryan Ernst f766b260ba Add tests for includeInObject backcompat 2015-05-12 23:11:15 -07:00
Ryan Ernst 565ffb16f1 Mappings: Remove ability to set meta fields inside documents
A few meta fields can currently be set within a document's source.
However, the recommended way to set meta fields like this is through
the api, and setting within the document can be a performance trap
(e.g. needing to find _id in order to route the document).

This change removes the ability to set meta fields within
a document source for 2.0+ indexes.

closes #11051
closes #11074
2015-05-12 23:09:03 -07:00
Robert Muir 5deba7264c Add tests.config support to BootstrapForTesting
Several plugins (e.g. elasticsearch-cloud-aws, elasticsearch-cloud-azure, elasticsearch-cloud-gce)
have integration tests that run with actual credentials to a remote service, so test runs
need access to this file.

These all require the tester (or jenkins) to supply the file with -Dtests.config.
2015-05-12 21:23:17 -04:00
Igor Motov d6efe1e508 Docs: Add information about restoring to a different cluster 2015-05-12 20:59:24 -04:00
Robert Muir 98b765839f Mark frequently failing test methods AwaitsFix until #211 is sorted out. 2015-05-12 20:58:07 -04:00
Robert Muir 79023c1e61 Merge pull request #11132 from rmuir/lockdown6
Remove unnecessary permissions.
2015-05-12 20:03:20 -04:00
Robert Muir 4473bb4275 Remove unnecessary permissions. 2015-05-12 19:15:59 -04:00
Lee Hinman 990c3a9093 Merge remote-tracking branch 'dakrone/acquire-write-lock-on-delete' 2015-05-12 13:23:09 -06:00
Lee Hinman f7e8d7c024 [CORE] Acquire IndexWriter's `write.lock` lock before shard deletion
In `NodeEnvironment.deleteShardDirectoryUnderLock`, we will now attempt
to acquire, then release, the `write.lock` file for the Lucene index in
question to ensure that no other `IndexWriter` has the directory open
before deleting the data.

Note that the `write.lock` file must be released before the actual
deletion in order to allow the directory to be deleted.

Fixes #11097
2015-05-12 13:19:29 -06:00
Robert Muir 262555079c Merge pull request #11106 from rmuir/symlink
Improve path mgmt on init, better error messages, symlink support
2015-05-12 14:21:19 -04:00
Adrien Grand 2999ea9558 Merge pull request #11126 from jpountz/fix/script_query
Query DSL: Make the script filter a query.
2015-05-12 19:33:17 +02:00
Adrien Grand 6936577c6e Query DSL: Make the script filter a query.
This change changes the script filter so that it produces scorers with two-phase
iteration support instead of doc id sets with random-access.
2015-05-12 19:20:37 +02:00
Adrien Grand 842608c396 Merge pull request #11125 from jpountz/upgrade/lucene-5.2.0-snapshot-1678978
Upgrade to lucene-5.2.0-snapshot-1678978.
2015-05-12 18:53:56 +02:00
Adrien Grand 290fefcdf8 Upgrade to lucene-5.2.0-snapshot-1678978. 2015-05-12 18:49:51 +02:00
Britta Weber e6f5fb82f0 Merge remote-tracking branch 'origin/master' into feature/synced_flush 2015-05-12 14:50:42 +02:00
Britta Weber 24ffcc28ac fix merge conflict in javadoc 2015-05-12 14:40:56 +02:00
Simon Willnauer a7abe0a324 Make synced flush attemp async to run it easily from a TransportAction
Today we enforce blocking which doesnt' really fit in the elasticsearch model
this commit adds async execution to the synced flush service by passing a
ActinListener to the service returing immediately.
2015-05-12 11:54:56 +02:00
Britta Weber 272babd9dc [TEST] add comment bout security manager to bwc test description 2015-05-12 10:26:42 +02:00
markharwood 89b95dccc8 Aggregations enhancement - remove pointless term frequency lookups.
If the user has set a shard_min_doc_count setting then avoid looking up background frequencies if the term fails to meet the foreground threshold on a shard.

Closes #11093
2015-05-12 08:45:17 +01:00
Simon Willnauer 236f6ccad7 [TEST] Reduce likelyness of sync on every operation 2015-05-12 09:32:12 +02:00
Robert Muir d1defef69d Properly handle the case where symlinks are supported, but
the user is not a windows administrator (can throw IOE in this case)
2015-05-12 00:53:51 -04:00
Robert Muir 019a9410a3 SecurityBootstrap -> BootstrapForTesting, and make less things public 2015-05-12 00:34:02 -04:00
Robert Muir 2cea5f2b38 Improve path management on init:
* Properly support symlinks (e.g. /tmp -> /mnt/tmp)
* Check all configured paths up front and deliver the best exception we can when things are wrong
* Initialize securitymanager earlier
* Fix too-loud error logging of Natives root check
2015-05-12 00:20:52 -04:00
Robert Muir 8ce8527af9 disable security manager until #210 has been addressed. 2015-05-11 21:32:47 -04:00
Robert Muir 7f65196ee8 remove unnecessary prop 2015-05-11 21:26:36 -04:00
Robert Muir 963f60f4d4 remove unnecessary prop 2015-05-11 21:26:09 -04:00
Robert Muir b334e05b7e remove unnecessary prop 2015-05-11 21:25:43 -04:00
Robert Muir b60d49c914 remove unnecessary prop 2015-05-11 21:25:00 -04:00
Robert Muir 22601a477f remove unnecessary prop 2015-05-11 21:24:26 -04:00
Robert Muir 5962d90e1e remove unnecessary prop 2015-05-11 21:23:34 -04:00
Robert Muir 546db210d8 remove unnecessary prop 2015-05-11 21:22:58 -04:00
Robert Muir 8eeec50ace enable security manager in tests and upgrade to final jython 2.7.0
The previous rc version would try to execute /usr/bin/id...
2015-05-11 20:56:19 -04:00
Robert Muir 81f682ddbe enable security manager in tests 2015-05-11 20:46:56 -04:00
Robert Muir 3823c40471 enable security manager in tests 2015-05-11 19:51:37 -04:00
Robert Muir 53bf03fbca enable security manager in tests 2015-05-11 19:48:54 -04:00
Robert Muir 2e7726791d Remove outdated policy file 2015-05-11 19:44:53 -04:00
Robert Muir 3be8bb84e9 Remove outdated policy file 2015-05-11 19:43:51 -04:00
Robert Muir 48e45f5ba8 Remove outdated policy file 2015-05-11 19:43:13 -04:00
Robert Muir 3417ae8d7f Remove outdated policy file 2015-05-11 19:42:40 -04:00
Robert Muir f7e339575f Remove outdated policy file 2015-05-11 19:41:59 -04:00
Robert Muir 1fad6fe356 Remove outdated policy file 2015-05-11 19:40:56 -04:00
Robert Muir 5e672bdd55 enable security manager in tests 2015-05-11 19:39:51 -04:00
Robert Muir 59d6cfa659 enable security manager in tests 2015-05-11 19:36:45 -04:00
Robert Muir e4f3dc13c6 enable security manager in tests 2015-05-11 19:33:58 -04:00
Robert Muir e9b85b97ba enable security manager in tests 2015-05-11 18:49:42 -04:00
Robert Muir aebe76a643 enable security manager in tests 2015-05-11 18:43:21 -04:00
Robert Muir 175847c423 enable security manager in tests 2015-05-11 18:35:02 -04:00