MB-9343 sort partitions in upr_consumer_conn state

...because the callers rely on it

Change-Id: I30f051bf1db4290bef08b65a1d278ca1efafba8b
Reviewed-on: http://review.couchbase.org/34131
Tested-by: Artem Stemkovski <artem@couchbase.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
MB-9343 infinite timeout for upr_replicator:setup_replication

Change-Id: I5cb6178ed51976bd414211b0d23cd60e5462308e
Reviewed-on: http://review.couchbase.org/34165
Tested-by: Artem Stemkovski <artem@couchbase.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
MB-9343 crash replication_manager if there's a mismatch between

... actual tap and upr partitions and mixed tap/upr replication
type

Change-Id: I63d47becefa25425cf373cd97840ce3fa60fcf83
Reviewed-on: http://review.couchbase.org/34213
Tested-by: Artem Stemkovski <artem@couchbase.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
MB-9343 verify replications after UPR upgrade

Change-Id: I28acdb4c731aee6cc0297951eb301d0bfc653c13
Reviewed-on: http://review.couchbase.org/34214
Tested-by: Artem Stemkovski <artem@couchbase.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
MB-9343 nuke upr connections if the rebalance was stopped or failed.

the connections will be nuked
- if the replicator crashed
- if the rebalance didn't succeed
- if the janitor_agent crashed during the rebalance

Change-Id: I6cbc0323512a59866ef0e19cff80a9eb4f25ef65
Reviewed-on: http://review.couchbase.org/34069
Tested-by: Artem Stemkovski <artem@couchbase.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
MB-9343 make sure that all old upr consumer connections are killed

.. before janitor_agent queries vbucket states the first time

Change-Id: Iceb7b16d6f313b2ffd3ccad17e825bf8d5fcc811
Reviewed-on: http://review.couchbase.org/34250
Tested-by: Artem Stemkovski <artem@couchbase.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>