MB-6860: Get signatures without opening group

For the spatial index cleanup we need to get the signatures
of the groups. Previously we opened the group to get it,
that lead to creating spatial groups even for design document
that don't contain any spatial indexes.

This commit also makes it more robust like removing all .spatial
files when there are no design documents at all.

This commit depends on: http://review.couchbase.org/21591

Change-Id: I54189ef1869806060479e0b1add9c72ec0065a35
Reviewed-on: http://review.couchbase.org/21593
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Volker Mische <volker.mische@gmail.com>
MB-6716 Exclude xdcr messages from debug, info and error logs.

Change-Id: Ide89593faaceff0de66a9e2e88f09c20f786d505
Reviewed-on: http://review.couchbase.org/21624
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
CBD-610: require user confirmation for more than 10 views/ddoc

Change-Id: I57248c333bd61ff0e75f30c0e099e7e97f2c8400
Reviewed-on: http://review.couchbase.org/21560
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-6899: start mb_master before menelaus_sup

So that we in initial startup we can upgrade cluster compat before
anybody can see lack of couchApiBase and 2.0 compatibility.

Change-Id: I828f55a011d867c71259e24d6401c7be4e4c7b02
Reviewed-on: http://review.couchbase.org/21603
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-6916: run janitor as part of flush

So that flush is fully synchronous

Change-Id: I2b05401fc0c3ec151dca4b37047cb736c7e31906
Reviewed-on: http://review.couchbase.org/21640
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-6716: added documentation on our logging setup

Change-Id: Id7002778b2210b30286e736adbb52347e0da61c5
Reviewed-on: http://review.couchbase.org/21642
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-5308: Documents - removed total_rows property

Change-Id: I988b5a76e1a1f1368110b212d321603b456da4fd
Reviewed-on: http://review.couchbase.org/21258
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-5308: Documents - clarify isLastPage function

Change-Id: I124ebc7fa7e4aa23f20a0bdd60133a4b852c5cf3
Reviewed-on: http://review.couchbase.org/21480
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-6557: disable publish and compact buttons for empty ddoc

Change-Id: I25d2b872a6d4d812234f8bbb7f262b94fb507fc9
Reviewed-on: http://review.couchbase.org/21483
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-6854: fixed memcached buckets look

Change-Id: Iee8e7c67003292198ec224d1188c8db6bb22be7d
Reviewed-on: http://review.couchbase.org/21485
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-5308: Servers - fixed servers list layout

Change-Id: I1a2a9a60c9f583f216cd4a65bafef24e69cc810d
Reviewed-on: http://review.couchbase.org/21576
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-6896: handler for load samples during rebalance

Change-Id: I377f5c9a479857bdb8ed0fdbe53fc5bc8d53acc9
Reviewed-on: http://review.couchbase.org/21633
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-6922: send 302 when handling no active vbuckets on view query

So that clients can clearly distinguish hitting node being
rebalanced-in or -out and hitting dead ddoc or bucket. Also Location
header will point client to better node which is helpful as well.

Change-Id: I5ed1066ba646a67d0197b67f3988251822dfec31
Reviewed-on: http://review.couchbase.org/21657
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
MB-6888 Use cancelXDCR URI to delete replications.

Instead of deleting the replication document from _replicator db
directly.

Change-Id: I8bf18538824b712227121cf177931462542ccc16
Reviewed-on: http://review.couchbase.org/21648
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-6888 Log cluster references/replications creation and removal.

Change-Id: I06385c189146adaf14bbbc96b0151ac972a42a60
Reviewed-on: http://review.couchbase.org/21649
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-6924: correct XDCR stat name in summary section on UI

Today the stat "XDCR replication queue" in summary section actually
represents the number of docs to replicate by XDCR, not the number of
docs stored the XDCR replication queue. This change-set changes the
name to "XDCR docs to replicate" to fix the confusion.

Change-Id: I06a1942cbb57663f0939eda8d2f832e1b251cd9e
Reviewed-on: http://review.couchbase.org/21654
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Junyi Xie <junyi.couchbase@gmail.com>
Tested-by: Junyi Xie <junyi.couchbase@gmail.com>
MB-6926 Remove unused per node uuid.

Previously it was used by XDCR to form unique name for info
documents. Now we don't need it.

Change-Id: I31b4ad7166efe996c13b3da5375047d3b2af1aec
Reviewed-on: http://review.couchbase.org/21659
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>