Tal Levy
6e91d65a99
Merge pull request #16276 from talevy/more_details_factory_factory
...
catch processor/pipeline factory exceptions and return structured error responses
2016-01-29 13:44:31 -08:00
Tal Levy
fca442f4d1
Introduce Pipeline Factory Error Responses in Node Ingest
...
When there is an exception thrown during pipeline creation within
Rest calls (in put pipeline, and simulate) We now return a structured
error response to the user with details around which processor's
configuration is the cause of the issue, or which configuration property
is misconfigured, etc.
2016-01-29 13:37:27 -08:00
Ryan Ernst
23f70296fb
Merge pull request #16304 from rjernst/expect_throws
...
Tests: Add expectThrows utility to base test case
2016-01-29 09:01:19 -08:00
Ryan Ernst
90485d0635
Remove unnecessary unchecked cast
2016-01-29 09:00:27 -08:00
Simon Willnauer
51745d7272
Call latch in a finally block
2016-01-29 17:38:33 +01:00
Simon Willnauer
e24fac644a
Fix AzureRepositoryF to handle exceptions on close
...
Fix TribeUnitTests to handle exceptions on close
2016-01-29 17:34:02 +01:00
Simon Willnauer
6814f24009
Cleanup Relesables now that we can delegate to IOUtils
2016-01-29 17:02:40 +01:00
Simon Willnauer
15841081f6
Disambiguate TestCluster implementation since Client is now also Closeable and if we call IOUtils it might interpret it as a Iterable<Closeable>
2016-01-29 16:51:06 +01:00
Simon Willnauer
0bcee2df37
Use IOUtils#close() where needed
2016-01-29 16:30:50 +01:00
Simon Willnauer
ac87751b3d
Use IOUtils#close() where needed
2016-01-29 16:26:37 +01:00
Jason Tedor
c7b8fecb0e
Merge pull request #16313 from jasontedor/monitor-settings
...
Monitor settings
2016-01-29 10:21:38 -05:00
Simon Willnauer
87737d3e02
Ensure all resoruces are closed on Node#close()
...
We are leaking all kinds of resources if something during Node#close() barfs.
This commit cuts over to a list of closeables to release resources that
also closed remaining services if one or more services fail to close.
Closes #13685
2016-01-29 16:18:21 +01:00
Jason Tedor
a1fd01d4cc
No leniency in parsing JVM GC monitor settings
...
This commit removes some leniency in the parsing of the JVM GC monitor
settings, and adds tests for the JVM GC monitor settings.
2016-01-29 10:07:34 -05:00
Simon Willnauer
f89e63f988
Merge pull request #16315 from s1monw/issues/16299
...
Use index name rather than the index object to check against existence in the set
2016-01-29 15:19:43 +01:00
Boaz Leskes
9aceddb9e2
Missing CLUSTER_ROUTING_ALLOCATION_ALLOW_REBALANCE_SETTING.getKey()
2016-01-29 15:17:46 +01:00
Simon Willnauer
838edab168
Use index name rather than the index object to check against existence in the set
...
This is an issue due to some refactoring we did along the lines of Index.java etc.
We pass the index object to Set#contains which should actually be only it's name.
Closes #16299
2016-01-29 15:09:48 +01:00
Simon Willnauer
14017d4ad8
Merge pull request #16311 from s1monw/cut_over_tribe_settings
...
Cut over tribe node settings to new settings infra
2016-01-29 14:23:50 +01:00
Jason Tedor
ea56bfad9a
JVM GC monitor settings
...
This commit converts the GC monitor settings "monitor.jvm.gc.*" to the
new settings infrastructure.
2016-01-29 08:07:27 -05:00
Jason Tedor
3f53e143a5
FS monitor refresh interval setting
...
This commit converts the FS monitor refresh interval setting
"monitor.fs.refresh_interval" to the new settings infrastructure.
2016-01-29 07:58:57 -05:00
Jason Tedor
aac53c9210
JVM monitor refresh interval setting
...
This commit converts the JVM monitor refresh interval setting
"monitor.jvm.refresh_interval" to the new settings infrastructure.
2016-01-29 07:58:56 -05:00
Simon Willnauer
65c0f80b13
Merge pull request #16308 from s1monw/never_interrupt_store_checks
...
Prevent interruption while store checks lucene files for consistency
2016-01-29 13:04:55 +01:00
Simon Willnauer
4c8768eeb7
Cut over tribe node settings to new settings infra
2016-01-29 13:03:55 +01:00
Jason Tedor
4eed71cad2
Process monitor refresh interval setting
...
This commit converts the process monitor refresh interval setting
"monitor.process.refresh_interval" to the new settings infrastructure.
2016-01-29 06:52:29 -05:00
Jason Tedor
d13739fcb9
OS monitor refresh interval setting
...
This commit converts the OS monitor refresh interval setting
"monitor.os.refresh_interval" to the new settings infrastructure.
2016-01-29 06:49:43 -05:00
Simon Willnauer
74a1959c3b
Merge pull request #16305 from s1monw/issues/16301
...
Add a hard check to ensure we are running with the expected lucene version
2016-01-29 12:17:35 +01:00
Simon Willnauer
f6b922a97a
Prevent interruption while store checks lucene files for consistency
...
This can cause premature closing of the underlying file descriptor immediately
if at the same time the thread is blocked on IO. The file descriptor will remain closed
and subsequent access to NIOFSDirectory will throw a ClosedChannelException.
2016-01-29 12:09:00 +01:00
Simon Willnauer
fa17a84a89
Add a hard check to ensure we are running with the expected lucene version
...
Closes #16301
2016-01-29 11:59:31 +01:00
Martijn van Groningen
ce89039926
percolator: If `index.percolator.map_unmapped_fields_as_string` is enabled then don't replace found fields with dummy string field
...
Closes #10500
2016-01-29 11:45:54 +01:00
Christoph Büscher
75e93c2eca
Merge branch 'master' into feature-suggest-refactoring
2016-01-29 10:52:54 +01:00
Martijn van Groningen
6c34452409
inner hits: Query and top level inner hit definitions shouldn't overwrite each other.
...
Closes #16218
2016-01-29 10:52:04 +01:00
Ryan Ernst
ccfe1bd2e0
Tests: Add expectThrows utility to base test case
...
In junit5, a neat assertion method is added which makes testing expected
failures a little more straightforward. The block of code that is
expected to throw is passed in with a lambda expression, and the caught
exception returned for inspection.
This change adds an implementation of expectThrows to ESTestCase. When
junit5 is eventually releassed and we switch to it, we can remove.
2016-01-29 01:51:29 -08:00
Christoph Büscher
b039360d2e
Merge pull request #16130 from cbuescher/refactor-smoothingModel
...
Enable Writeable serialization and parsing from xContent for SmoothingModels
2016-01-29 10:49:34 +01:00
Christoph Büscher
aefdee17fd
Adding builder method to SmoothingModel implementations
...
Adds a method that emits a WordScorerFactory to all of the
three SmoothingModel implementatins that will be needed when
we switch to parsing the PhraseSuggestion on the coordinating
node and need to delay creating the WordScorer on the shards.
2016-01-29 10:21:31 +01:00
Martijn van Groningen
f5e89f7242
mappings: remove fly weight
2016-01-29 10:12:39 +01:00
Martijn van Groningen
9ec1b11148
term vectors: The term vector APIs no longer modify the mappings if an unmapped field is found
2016-01-29 09:32:40 +01:00
Ali Beyad
e3816d58ae
TribeIT.testOnConflictDrop test awaits fix until #16299 is resolved
2016-01-28 17:10:04 -05:00
Jason Tedor
90284e6f01
Merge pull request #16061 from jasontedor/normalize-unavailable-load-average
...
Normalize unavailable load average
Relates #12049 , #14741 , #15907 , #15932 , #15934
2016-01-28 15:38:36 -05:00
Christoph Büscher
e785e11aa1
Merge branch 'master' into feature-suggest-refactoring
2016-01-28 18:18:00 +01:00
Igor Motov
e035dabd4d
Extend tracking of parent tasks to master node, replication and broadcast actions
...
Now MasterNodeOperations, ReplicationAllShards, ReplicationSingleShard, BroadcastReplication and BroadcastByNode actions keep track of their parent tasks.
2016-01-28 12:13:36 -05:00
Nik Everett
d4c40fcbd8
Merge pull request #16273 from nik9000/convert_node_environment_settings
...
Switch NodeEnvironment's settings to new settings
2016-01-28 12:09:03 -05:00
Nik Everett
b2ce0e02d5
Switch NodeEnvironment's settings to new settings
...
And add a few more tests.
2016-01-28 11:43:09 -05:00
Simon Willnauer
fea8676a6c
remove dead code
2016-01-28 17:14:52 +01:00
Simon Willnauer
7f01771021
Merge pull request #16295 from s1monw/convert_multicast_settings
...
Convert multcast plugin settings to the new infra
2016-01-28 17:01:29 +01:00
Simon Willnauer
a149ebdb7b
remove blanks
2016-01-28 17:01:01 +01:00
Simon Willnauer
687d1d83fa
Convert multcast plugin settings to the new infra
2016-01-28 17:01:01 +01:00
Simon Willnauer
7dce8e18c6
Merge pull request #16289 from s1monw/validate_logger_settings
...
Validate logger settings and allow them to be reset via API
2016-01-28 17:00:06 +01:00
Simon Willnauer
3509ceaa80
simplify dynamic key setting and make it generally useful
2016-01-28 16:16:24 +01:00
Konrad Beiske
a0d8d656fc
Added exclusive filter tests to AbstractFilteringJsonGeneratorTestCase
2016-01-28 16:12:57 +01:00
Christoph Büscher
186fa2f755
Merge branch 'master' into feature-suggest-refactoring
2016-01-28 15:41:23 +01:00
Simon Willnauer
23d41ce42f
Merge branch 'master' into validate_logger_settings
2016-01-28 15:07:00 +01:00