monitor vbucket_filter_change txn process earlier. MB-5285

In MB-5285 we're seeing noproc from monitor which is useful, because
it tells us we've monitored late, but in general it's good idea to
monitor earlier so that death cause is seen and better propagated. In
MB-5285 that would be timeout instead of noproc which is clearer.

Change-Id: I7ee5d5779db445714653a67493f9d9b8dd0dc6e6
Reviewed-on: http://review.couchbase.org/15998
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
increased vbucket filter change timeout. MB-5285

Apparently in some environment 5 second is too small. Lets make it
bigger so that in those wierd environments rebalance doesn't fail
without good reason.

Change-Id: I8c5d5fe256e090f7d81e52a44002d8dea6ef5f63
Reviewed-on: http://review.couchbase.org/15999
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
log stopping of vbm_sup childs

So that we can understand MB-5280 better.

Change-Id: Iac179b41fb04c0de3349edbd256f907703dacb9f
Reviewed-on: http://review.couchbase.org/16000
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
log last tick time when logging stats

So that we can see how big (if any) time skew is between master node
and this node.

Change-Id: I702b02f088ff1f1ede392d2b0bff3c7f41bb5b09
Reviewed-on: http://review.couchbase.org/16001
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
remove all undefineds from list for old vbucket deletion.MB-5058

Doing -- [undefined] would remove only first copy of undefined. In
some cases we can have multiple. So we need more robust way.

Change-Id: Ie17c0ccbab943c0be72749a150df046069cd3e05
Reviewed-on: http://review.couchbase.org/16002
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
bp: format numeric values (timestamp) as numbers in masterEvents

Because it is confusing otherwise.

Change-Id: Id47813524f0baef04e7de41c13722f802fb575e8
Originally-Reviewed-on: http://review.couchbase.org/15722
Reviewed-on: http://review.couchbase.org/16003
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
allow offline formatting of master activity events

So that we can do something with raw events we have from diags.

Change-Id: I131b3a58481b6c851c1c325dbb30a6108faee0f5
Reviewed-on: http://review.couchbase.org/16004
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
made became_master master activity event include node

So that we can format this event on other node without confusion in
produced json stream

Change-Id: I5d0973c908c1d9da6a885dc4475d1542d0445df1
Reviewed-on: http://review.couchbase.org/16005
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
log vbucket state change in ebucketmigrator

So that MB-5298 is easier to diagnose.

Change-Id: I1d0fab0213bc1192b8040e90cd7c7b2ce25b14b9
Reviewed-on: http://review.couchbase.org/16006
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
better log pids of replica building participants

So that MB-5136 is easier to diagnose.

Change-Id: Ic533a63ed684d417fb00bef32b6f10348211834b
Reviewed-on: http://review.couchbase.org/16007
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
log if we have to sleep for open checkpoint when building replica

So that MB-5136 can be diagnosed better.

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

* origin/branch-181:
  log if we have to sleep for open checkpoint when building replica
  better log pids of replica building participants
  log vbucket state change in ebucketmigrator
  made became_master master activity event include node
  allow offline formatting of master activity events
  bp: format numeric values (timestamp) as numbers in masterEvents
  remove all undefineds from list for old vbucket deletion.MB-5058
  log last tick time when logging stats
  log stopping of vbm_sup childs
  increased vbucket filter change timeout. MB-5285
  monitor vbucket_filter_change txn process earlier. MB-5285

Conflicts:
	src/ns_vbm_sup.erl

Change-Id: I0d972605cfe582b8fd264fe1f51cb012b59dbde3