fixed typo in start_vbucket_filter_change. MB-4366

Returning Stack rather than State clearly makes no sense.

Change-Id: I6e7be6d74d7b5999d059e4e2b82330dd5c3acf10
Reviewed-on: http://review.couchbase.org/15121
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Steve Yen <steve.yen@gmail.com>
fixed auth function to return back error code

That should help us diagnose MB-5155

Change-Id: I94da004aba00b66333e53c14fc2b13d742731ef3
Reviewed-on: http://review.couchbase.org/15180
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
include master_events archive into diag

So that we can diagnose more issues. Particularly MB-5155

Change-Id: I8ad8ba94c39f608c132fa38e8ed7d59943e357ed
Reviewed-on: http://review.couchbase.org/15181
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
log creation of single vbucket mover

So that we can diagnose MB-5155 better.

Change-Id: I3b7a7d71274c9a53d7f1ea70460c18a2b6deeb54
Reviewed-on: http://review.couchbase.org/15182
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
log failure to spawn system-level stats collector loudly

So that issues are more widely visible.

Change-Id: I373bb0c75fa64aa960dc9c0d81036403f491b30a
Reviewed-on: http://review.couchbase.org/15183
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
don't sort already sorted system stats

Change-Id: I9148a9dacd579cbb03f22f8c4d77be551e424f82
Reviewed-on: http://review.couchbase.org/15184
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
implemented replica building ns_server system stats

Now system_stats_collector also maintains public ETS table for
efficient maintaining of various interesting counters.

Currently implemented counters are count of sleeps in replica building
completion polling loop as well as total amount of sleeps.

Change-Id: Icffce0ae31759de47b5ca3f51035d998848631c7
Reviewed-on: http://review.couchbase.org/15185
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
in replica building wait until destination has checkpoint.MB-5136

Change-Id: Ibcaa25a2dfd270ddbae76f019c9647c30505ad28
Reviewed-on: http://review.couchbase.org/15186
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
expose ns_server system stats in diag

Change-Id: I093edfa0df627b9458f7958aa913d9bbba4f5187
Reviewed-on: http://review.couchbase.org/15187
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
wait a bit before trying to claim epmd name. MB-5127

Change-Id: I06b655fa0606db22bf32a5e8eef844305b246143
Reviewed-on: http://review.couchbase.org/15188
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Merge remote-tracking branch 'origin/branch-181' into branch-18

* origin/branch-181:
  wait a bit before trying to claim epmd name. MB-5127
  expose ns_server system stats in diag
  in replica building wait until destination has checkpoint.MB-5136
  implemented replica building ns_server system stats
  don't sort already sorted system stats
  log failure to spawn system-level stats collector loudly
  log creation of single vbucket mover
  include master_events archive into diag
  fixed auth function to return back error code
  fixed typo in start_vbucket_filter_change. MB-4366

Change-Id: I1aca4ca158cfe31590276ffdf92bf995871482cd