xuzha
062e038360
Throw IllegalArgumentException instead of ClassCastException,
...
Let stats aggregation returns 400 error when performed over an invalid field
closes #12842
2015-08-15 15:42:03 -07:00
Clinton Gormley
9b08f4012e
Docs: Add link to rivers deprecation blog post
2015-08-15 19:34:25 +02:00
Clinton Gormley
488f1b1c39
Docs: Removed rivers documentation.
2015-08-15 18:40:17 +02:00
Clinton Gormley
5df5ab0451
Docs: Another bad asciidoc link
2015-08-15 18:25:34 +02:00
Clinton Gormley
b67741f5f3
Docs: Another bad asciidoc link
2015-08-15 18:22:28 +02:00
Clinton Gormley
a0f92e101b
Docs: Fixed bad link to dynamic scripting
2015-08-15 18:20:14 +02:00
Clinton Gormley
43936c5fcd
Docs: Removed the _size field include
2015-08-15 18:12:31 +02:00
Clinton Gormley
f635f7ec82
Merge pull request #12040 from clintongormley/plugin_docs
...
Docs: Prepare plugin and integration docs for 2.0
2015-08-15 18:04:43 +02:00
Clinton Gormley
e143c6e460
Docs: Prepare plugin and integration docs for 2.0
...
* Centralised plugin docs in docs/plugins/
* Moved integrations into same docs
* Moved community clients into the clients section of the docs
* Removed docs/community
Closes #11734
Closes #11724
Closes #11636
Closes #11635
Closes #11632
Closes #11630
Closes #12046
Closes #12438
Closes #12579
2015-08-15 18:02:43 +02:00
Nik Everett
a9b2b033e3
[Packaging] Fix variable substitution
...
Systemd looks to be a bit less tolerant about $VAR than bash is. Replace
$VAR with ${VAR} in places in the systemd configuration file to get the
substitutions working.
2015-08-15 08:53:43 -07:00
Nik Everett
42300938aa
Merge pull request #12904 from nik9000/remove_ES_CLEAN_BEFORE_TEST
...
Remove ES_CLEAN_BEFORE_TEST
2015-08-15 07:30:19 -07:00
Clinton Gormley
0bf3661c75
Docs: Documented path.script
2015-08-15 16:20:06 +02:00
Simon Willnauer
20f6b41337
Mute InnerHitsIT Relates to #12905
2015-08-15 08:41:28 +02:00
Nik Everett
1d54cff167
Test: Remove ES_CLEAN_BEFORE_TEST
...
In the bats test ES_CLEAN_BEFORE_TEST was used to clean the environment
before running the tests. Unfortunately the tests don't work unless you
specify it every time. This removes that option and always runs the clean.
2015-08-14 15:12:52 -07:00
Simon Willnauer
b447e2ae99
Move master to [2.1.0-SNAPSHOT]
2015-08-14 23:44:06 +02:00
Jason Tedor
6292bc07f9
Merge pull request #12892 from jasontedor/fix/12865
...
Validate settings specified in index templates at template creation time
2015-08-14 15:43:16 -06:00
Jason Tedor
b88d2f6255
Validate settings specified in index templates at template creation time
...
Previously settings specified in index templates were not validated upon
template creation. Creating an index from an index template with invalid
settings could lead to cluster stability issues because creation of such
indexes would bypass index settings validation.
This commit adds validation of settings specified in index templates at
template creation time. This works by routing the index template
settings through the index settings validation mechanism.
Closes #12865
2015-08-14 15:23:10 -06:00
Lee Hinman
178dc7ebaf
Revert "Add no-Charset version of Files.readAllLines to forbidden apis"
...
This reverts commit 88765320a9
.
2015-08-14 15:05:24 -06:00
Ryan Ernst
33690b990a
Merge pull request #12872 from rjernst/resolve_your_own_config
...
Remove Environment.resolveConfig
2015-08-14 13:56:32 -07:00
Lee Hinman
88765320a9
Add no-Charset version of Files.readAllLines to forbidden apis
2015-08-14 14:55:22 -06:00
Simon Willnauer
03ceabb1da
Merge pull request #12894 from s1monw/fix_repro_line
...
Fix reproduction line to include project filters
2015-08-14 22:52:55 +02:00
Lee Hinman
6f5a25d98e
[DOC] Use 127.0.0.1 instead of localhost in READMEs
...
Users with IPv6 preferred over IPv4 may have `localhost` resolve to
`::1` instead of `127.0.0.1`, so we should be explicit so they don't run
into issues.
2015-08-14 14:47:58 -06:00
Martijn van Groningen
942d040f45
inner hits: Reset the `ShardTargetType` after serializing inner hits.
...
This fixes a bug where only the first top level search hit has a shard target and any subsequent search hits don't.
2015-08-14 22:38:12 +02:00
Lee Hinman
1b9877bb65
Use Java 7 version of Files.readAllLines instead of Java 8 version
2015-08-14 14:36:17 -06:00
Nik Everett
11d74dc26d
Testing: Change qa/vagrant artifactId
...
Related to #12651
2015-08-14 13:18:23 -07:00
Lee Hinman
cd03e61f4b
Merge remote-tracking branch 'dakrone/validate-plugin-checksum'
2015-08-14 14:06:37 -06:00
Nik Everett
fc954216e3
Testing: Add bin to jvm-example
...
This will be useful in testing the plugin installer.
Relates to #12651
2015-08-14 13:05:26 -07:00
Lee Hinman
d35a3a37eb
Also catch NoSuchFileException
2015-08-14 13:54:14 -06:00
Lee Hinman
33f118e9c8
Print out the name of the sum that failed
2015-08-14 13:51:47 -06:00
Simon Willnauer
bba34de6b3
Fix reproduction line to include project filters
...
Today on a failure the reproduce line printed out by the test framework
will build all projects and might fail if the test class is not present.
This commit adds a reactor filter to the reproduction line to ensure
unrelated projects are skipped.
Closes #12838
2015-08-14 21:36:49 +02:00
Clinton Gormley
db1e83884f
Docs: Rewrote the migrating-to-2.0 section
2015-08-14 20:26:18 +02:00
Ryan Ernst
867f056cf6
Simplify random name index and move method to its only user
2015-08-14 11:22:20 -07:00
Christoph Büscher
407781e76a
Adding comments to test
2015-08-14 18:42:45 +02:00
Lee Hinman
41d8b552e6
Validate checksums for plugins if available
...
When a plugin is downloaded, this change additionally tries to download
`${pluginurl}.sha1` and verify the SHA1 checksum for the file. If no
.sha1 file is found, it tries `${pluginurl}.md5`.
Note that if neither checksum file is found, a notice is printed but the
plugin can still be installed. If the checksum check fails, the plugin
install is aborted.
Example output if no checksums are available:
```
bin/plugin install elasticsearch/elasticsearch-analysis-icu/2.6.0-SNAPSHOT
-> Installing elasticsearch/elasticsearch-analysis-icu/2.6.0-SNAPSHOT...
Trying http://download.elastic.co/elasticsearch/elasticsearch-analysis-icu/elasticsearch-analysis-icu-2.6.0-SNAPSHOT.zip ...
Trying http://search.maven.org/remotecontent?filepath=elasticsearch/elasticsearch-analysis-icu/2.6.0-SNAPSHOT/elasticsearch-analysis-icu-2.6.0-SNAPSHOT.zip ...
Trying https://oss.sonatype.org/service/local/repositories/releases/content/elasticsearch/elasticsearch-analysis-icu/2.6.0-SNAPSHOT/elasticsearch-analysis-icu-2.6.0-SNAPSHOT.zip ...
Trying https://github.com/elasticsearch/elasticsearch-analysis-icu/archive/2.6.0-SNAPSHOT.zip ...
Trying https://github.com/elasticsearch/elasticsearch-analysis-icu/archive/master.zip ...
Downloading .....................................DONE
Verifying https://github.com/elasticsearch/elasticsearch-analysis-icu/archive/master.zip checksums if available ...
NOTE: Unable to verify checksum for downloaded plugin (unable to find .sha1 or .md5 file to verify)
```
Example output if checksums are available:
```
bin/plugin install elasticsearch/elasticsearch-analysis-icu/2.6.0-SNAPSHOT
-> Installing elasticsearch/elasticsearch-analysis-icu/2.6.0-SNAPSHOT...
Trying http://download.elastic.co/elasticsearch/elasticsearch-analysis-icu/elasticsearch-analysis-icu-2.6.0-SNAPSHOT.zip ...
Trying http://search.maven.org/remotecontent?filepath=elasticsearch/elasticsearch-analysis-icu/2.6.0-SNAPSHOT/elasticsearch-analysis-icu-2.6.0-SNAPSHOT.zip ...
Trying https://oss.sonatype.org/service/local/repositories/releases/content/elasticsearch/elasticsearch-analysis-icu/2.6.0-SNAPSHOT/elasticsearch-analysis-icu-2.6.0-SNAPSHOT.zip ...
Trying https://github.com/elasticsearch/elasticsearch-analysis-icu/archive/2.6.0-SNAPSHOT.zip ...
Trying https://github.com/elasticsearch/elasticsearch-analysis-icu/archive/master.zip ...
Downloading .....................................DONE
Verifying https://github.com/elasticsearch/elasticsearch-analysis-icu/archive/master.zip checksums if available ...
Downloading .DONE
```
Example output if checksums fail:
```
bin/plugin install elasticsearch/elasticsearch-analysis-kuromoji/2.5.0 -url http://localhost:8000/elasticsearch-analysis-kuromoji-2.5.0.zip
-> Installing elasticsearch/elasticsearch-analysis-kuromoji/2.5.0...
Trying http://localhost:8000/elasticsearch-analysis-kuromoji-2.5.0.zip ...
Downloading .............................................DONE
Verifying http://localhost:8000/elasticsearch-analysis-kuromoji-2.5.0.zip checksums if available ...
Downloading .DONE
ERROR: incorrect hash, file hash: [dbdc9c2cd32782054497a21fbdcae3ca1ff23c80], expected: [dbdc9c2cd32782054497a21fbdcae3ca1ff23c80-bad]
```
Resolves #12750
2015-08-14 10:40:40 -06:00
Alexander Reelsen
0240b581e7
PluginManager: Fix automatically generated URLs for official plugins
...
In order to match the paths of official plugins, we need to fix
the broken test by removing the elasticsearch prefix from the official
plugin names before testing.
2015-08-14 18:28:54 +02:00
Igor Motov
e44991d2ef
Mute test SharedClusterSnapshotRestoreIT#renameOnRestoreTest
...
Working on the fix
2015-08-14 12:12:53 -04:00
Christoph Büscher
e01c0927a6
Aggregations: Make ValueParser.DateMath aware of timezone setting
...
This PR adds a timezone field to ValueParser.DateMath that is
set to UTC by default but can be set using the existing constructors.
This makes it possible for extended bounds setting in DateHistogram
to also use date math expressions that e.g. round by day and apply
this rounding in the time zone specified in the date histogram
aggregation request.
Closes #12278
2015-08-14 18:11:39 +02:00
Simon Willnauer
4c1ef2c943
Fix test to also include the mapper-size
2015-08-14 18:11:27 +02:00
Simon Willnauer
30692fe917
Add mapper-size to plugin list
2015-08-14 18:04:45 +02:00
Alexander Reelsen
e869c87119
Build: Adding aws-maven extension to dev-tools and rest-api-spec
2015-08-14 17:30:00 +02:00
Alexander Reelsen
3893544f98
Release scripts: Split prepare_release into two scripts
...
In order to reflect our RC release process, we need to separate
the prepare_release script into two separate scripts.
One script now updates the documentation. That one can be executed
anytime and needs to be pushed after that.
The other script updates the version in Version.java and all pom.xml
files, but does not commit anymore. This allows to create a non snapshot
version locally, run mvn deploy, push the artifacts into S3 and, upon
successful tests, simply release them on sonatype. This also allows for
updates, because the S3 snapshot will include the commitId in their repo
as already pushed before.
2015-08-14 16:44:39 +02:00
Martijn van Groningen
0688dddebf
Also delegate rewrite the the wrapped IndexSearcher.
...
In the the AssertingIndexSearcher is used we then also have extra validation when rewritting the query.
2015-08-14 16:34:04 +02:00
Adrien Grand
2fecc7e5c9
Merge pull request #12875 from jpountz/fix/dumber_context_indexsearcher
...
Simplify ContextIndexSearcher.
2015-08-14 15:42:23 +02:00
Clinton Gormley
1eaa8ee7b3
Add an optional "prefix_to_ignore" parameter to the license checker
...
If core plugins are to be renamed to not include the "elasticsearch-"
prefix, then we need a way of telling the license checker which
JAR files to ignore.
2015-08-14 15:41:05 +02:00
Alexander Reelsen
d57b82a514
Merge pull request #12877 from spinscale/1508-plugin-manager-use-buildid-for-s3-url
...
PluginManager: Change staging URL to reflect S3 bucket
2015-08-14 15:29:22 +02:00
Simon Willnauer
161a5b4dda
Merge pull request #12876 from s1monw/s3_tlp
...
Also deploy top level artifacts to S3
2015-08-14 15:28:54 +02:00
Simon Willnauer
c1405d26b5
fixtypo
2015-08-14 15:27:23 +02:00
Alexander Reelsen
cedbd20f2c
PluginManager: Change staging URL to reflect S3 bucket
...
In order to create releases without actually changing the version
as part of a commit, we also need to reflect the path of the potentially
changing S3 repo.
2015-08-14 15:23:31 +02:00
Simon Willnauer
dd1b0d84a6
Also deploy top level artifacts to S3
...
This commit adds the S3 wagon release profile also to dev-tools
and rest-api-spec and makes the actual repository path / bucket
configurable.
2015-08-14 15:21:06 +02:00
Adrien Grand
b3e7146b22
Simplify ContextIndexSearcher.
...
In particular this commit moves collector wrapping logic from
ContextIndexSearcher to QueryPhase.
2015-08-14 15:03:38 +02:00