1314 Commits

Author SHA1 Message Date
Jim Hooker
05aa1d90b8 Extend AbstractComponent and remove logger 2015-08-29 07:43:17 +01:00
Jason Tedor
0fa8ee1edd Fix logging statement in o.e.a.s.m.TransportMasterNodeAction 2015-08-28 13:39:56 -04:00
Jason Tedor
532d100c22 Fix logging statement 2015-08-28 13:34:22 -04:00
Nik Everett
c180defb10 [CAT] Default verbose to false
Closes #13156
2015-08-28 11:15:44 -04:00
Simon Willnauer
0c71328186 Expand ClusterInfo to provide min / max disk usage forn allocation decider
Today we sum up the disk usage for the allocation decider which is broken since
we don't stripe across multiple data paths. Each shard has it's own private path
now but the allocation deciders still treat all paths as one big disk. This commit
adds allows allocation deciders to access the least used and most used path to make
better allocation decidsions upon canRemain and canAllocate calls.

Yet, this commit doesn't fix all the issues since we still can't tell which shard
can remain and which can't. This problem is out of scope in this commit and will be solved
in a followup commit.

Relates to #13106
2015-08-28 14:04:25 +02:00
Boaz Leskes
218979da1b remove committedOrFailed and use committedOrFailedLatch for state 2015-08-28 12:31:46 +02:00
Boaz Leskes
10e8c410ea more feedback 2015-08-28 12:31:46 +02:00
Boaz Leskes
0668e0d623 more feedback 2015-08-28 12:31:46 +02:00
Boaz Leskes
c9ee8dbd16 tighten up FailedToCommitClusterStateException semantics and other feedback 2015-08-28 12:31:45 +02:00
Boaz Leskes
98ed133dd7 reduce log chatter 2015-08-28 12:31:45 +02:00
Boaz Leskes
c7c65b626f commit timeout default should never be larger than publishing timeout 2015-08-28 12:31:45 +02:00
Boaz Leskes
6208248215 fix defaults in DiscoverySettings 2015-08-28 12:31:44 +02:00
Boaz Leskes
91dee8b311 reject older cluster state from the same master 2015-08-28 12:31:44 +02:00
Boaz Leskes
a56d67d8d7 force mock transport in testCanNotPublishWithoutMinMastNodes 2015-08-28 12:31:44 +02:00
Boaz Leskes
e3e0aa5049 Improved concurrency controls In SendingController to make sure that a CS is never committed after publishing is marked out as timed out 2015-08-28 12:31:44 +02:00
Boaz Leskes
234a3794e5 improved timeout handling 2015-08-28 12:31:44 +02:00
Boaz Leskes
4d31681057 added constructor to FailedToCommitException 2015-08-28 12:31:43 +02:00
Boaz Leskes
7d3a36b20f fix ZenDiscoveryUnitTest.testShouldIgnoreNewClusterState 2015-08-28 12:31:43 +02:00
Boaz Leskes
7390bcf833 add FailedToCommitException to registration 2015-08-28 12:31:43 +02:00
Boaz Leskes
b702843fe9 beefed up testing... 2015-08-28 12:31:43 +02:00
Boaz Leskes
81e07e81e0 simplified PublishClusterStateActionTests infra 2015-08-28 12:31:42 +02:00
Boaz Leskes
3815a41626 initial copy over from POC 2015-08-28 12:31:42 +02:00
Boaz Leskes
35f9ee7a62 Tests: better isolation of cluster ports
Previously multiple clusters in the same JVM reused the same port ranges, leading to potential big gaps in port selection, which in turns causes unicast based discovery to fail, missing to find another node in the default 5 port range.

Also the previous logic had http use a range that is assigned to another JVMs.
2015-08-28 11:39:30 +02:00
Michael McCandless
07b5d22d91 disable new test on windows 2015-08-28 05:06:35 -04:00
Michael McCandless
fb703845dd Merge pull request #13158 from mikemccand/new_path_for_shard_test
Add unit test for ShardPath.selectNewPathForShard
2015-08-28 04:15:15 -04:00
Michael McCandless
b646ed9cd8 try to work on Windows too 2015-08-28 04:13:21 -04:00
Michael McCandless
8dbc1fbdbd use ShardPath.getRootStatePath; allow forbidden API 2015-08-28 03:59:02 -04:00
Boaz Leskes
db5e225a25 Discovery: fix discovery.zen.join_timeout default value logic
We default the value to be 20x the value of a ping timeout, however we only use the legacy ping timeout settings value for the calculation.

Closes #13162
2015-08-28 09:47:15 +02:00
javanna
9b2e77903d Internal: make ValidationException methods final and fix javadocs 2015-08-28 09:41:47 +02:00
javanna
37ec221df5 Internal: remove unused MapperQueryParser constructor 2015-08-28 09:38:29 +02:00
Jason Tedor
90bc784194 Work around for JDK-8039214 on JDK 9 2015-08-27 23:29:22 -04:00
Jason Tedor
3067cacb66 Remove and forbid use of com.google.common.collect.Lists
This commit removes and now forbids all uses of
com.google.common.collect.Lists across the codebase. This is the first
of many steps in the eventual removal of Guava as a dependency.
2015-08-27 22:14:33 -04:00
Igor Motov
2b87d7d919 Add readonly option for repositories
Closes #7831
Closes #11753
2015-08-27 18:21:29 -04:00
Nik Everett
19a79c99f9 [test] Use proper comparison operator
lessThanOrEqualTo is more appropriate when comparing _ttl than lessThan
because in rare cases, when tests run very fast, the ttl you fetch will
still equal the one you sent.
2015-08-27 16:43:10 -04:00
Britta Weber
e6eeadd171 [test] make sure that the scripts in testScoreAccessWithinScript never compute log(0) 2015-08-27 22:02:51 +02:00
Ryan Ernst
448d3498b1 Merge branch 'master' into fix/bwc_creation 2015-08-27 10:16:45 -07:00
Michael McCandless
e2e1b7f76a reference original issue 2015-08-27 13:06:00 -04:00
Michael McCandless
30a3e431ec polish 2015-08-27 13:01:36 -04:00
Michael McCandless
11f09f0a68 add basic unit test 2015-08-27 12:33:04 -04:00
Michael McCandless
4d38856f70 simplify API for ShardPath.selectNewPathForShard to enable unit testing: don't pass IndexShard 2015-08-27 12:32:21 -04:00
Lee Hinman
9f03f8cf44 Call beforeIndexShardCreated listener earlier in createShard
Some listeners may need to do work before a shard's path is
accessed (such as creating the directory in a plugin), so the listener
should be called before anything happens (as its name implies).
2015-08-27 10:05:27 -06:00
Michael McCandless
8f2ae59316 add asserts to make sure mocking 'took' 2015-08-27 11:19:55 -04:00
Michael McCandless
7a8a608d50 initial mock filesystem setup for test case 2015-08-27 10:55:04 -04:00
Nik Everett
9eb684da51 Default detect_noop to true
detect_noop is pretty cheap and noop updates compartively expensive so this
feels like a sensible default.

Also had to do some testing and documentation around how _ttl works with
detect_noop.

Closes #11282
2015-08-27 10:34:18 -04:00
Simon Willnauer
9a1b5cf966 [TEST] comparing paths seems to be hard on windonws 2015-08-27 13:20:22 +02:00
javanna
dc807f294e Query DSL: deprecate _name and boost in short variants of queries
As discussed in #11744 this is the last step to unify parsing of boost and _name. Those fields are supported only in long version of queries, while we sometimes parse them when wwe shouldn't, inconsistently.

Closes #11744
Closes #12966
2015-08-27 12:24:42 +02:00
André Carvalho
793fcb6998 Warmers: delete _all should not throw exception when no warmers are registered
Closes #8991
Closes #13058
2015-08-27 12:24:42 +02:00
Jason Tedor
a867a950ab Merge pull request #13135 from jasontedor/fix/eliminate-tuple-as-a-method-parameter
Remove usage of tuple as a method parameter
2015-08-27 04:57:26 -04:00
Simon Willnauer
03ccb99cd5 Expose shards data and state path via ShardStats
Since we now don't stripe shards across data paths we need a way
to access the information on which path a shard is allocated to
eventually do better allocation decisions based on disk usage etc.
This commit exposes the shard paths as part of the shard stats.

Relates to #13106
2015-08-27 09:42:56 +02:00
Ryan Ernst
a5bae3bdd8 Mappings: Fix doc parser to still pre/post process metadata fields on disabled type
closes #13017
2015-08-26 20:21:22 -07:00