|
Ran
|
Jobs
1
|
Files
28
|
Run time
1s
|
Badge
README BADGES
|
push
travis-ci
MB-18334 - skip rebalance orchestration when there's no index defs The previous change related to MB-18334 exposed a startup race. It turns out, even when there's just a single node, even starting up for the very first time, the ns-server will perform an early rebalance of cbft just to get that single node all nice and initialized (A). But, it turns out cbauth's db isn't quite ready in those early stages and/or perhaps when there's just a single node, and that single cbft node is (unfortunately) not listed in the cbauth's db (B). Which leads to rebalance failures right at step A. Unfortunately, cbft/cbgt's rebalance orchestration performs REST based monitoring to determine rebalance progress and completion, even when it's just a single node, and those REST status requests will fail when cbauth's db is incorrect at part B. So, this change just skips cbft/cbgt's rebalance orchestration when there's no index defs, which is the case when we're in an initialization phase and is also fine even in general operation. Successfully skipping rebalance orchestration, btw, leads to a later "cleanup phase" where cbft/cbgt's planner will publish the plan One Last Time, kinda like a safety net. So, no index defs will still be re-planned against all nodes, removing pindex assignments from all nodes. Change-Id: If951a388c Reviewed-on: http://review.couchbase.org/60495 Reviewed-by: Marty Schoch <marty.schoch@gmail.com> Tested-by: Steve Yen <steve.yen@gmail.com>
4666 of 5652 relevant lines covered (82.55%)
6.55 hits per line
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 145.1 | 0 |
82.55 |
Travis Job 145.1 |