Fix race condition in test 06-main-compaction.t

Ensure that automatic cleanup is disabled before adding
partition for cleanup and verifying the index state was
updated to reflect that state transition.

Change-Id: I1334f4ac0e851fa754ec0d28468ea3134d5150fa
Reviewed-on: http://review.couchbase.org/24012
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
MB-7413 Remove duplicated checkpoint logic

Not needed, as same logic is performed in flush_writes/1.

Change-Id: I559369df53e17b6875eb4444a50e186343719ac3
Reviewed-on: http://review.couchbase.org/24013
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>
MB-7522 Do updater restarts if a pending transition exists

So that we don't dive into too much complex state transitions.

Change-Id: I4314018838ea20e804e087960bb533e34c397f12
Reviewed-on: http://review.couchbase.org/24014
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>
MB-7525 Reset replica index utilization stats as well

When receive an utilization stats reset request, don't
forget to reset them in the replica index as well.

Change-Id: Ib1d5d671f786745478dca4f341882f33a73d1d5e
Reviewed-on: http://review.couchbase.org/24015
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>
MB-7535 Promote some logging from debug to info level

For all log messages related to monitoring index updates,
promote their level from debug to info. Also, everytime
an indexed sequence is not high enough to unblock a client,
log a message mentioning this information.

Change-Id: I4cd8f98d585dd67909e680a210a1d9e15b86517c
Reviewed-on: http://review.couchbase.org/24020
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>
MB-7535 Get seqs of indexable partitions synchronously

If there are update listeners or waiting clients (stale=false
query requests), ensure we get the latest seq numbers of all
the indexable partitions by asking the db set process to get
them synchronously.

Change-Id: Ic303f4ac83034e7a91f7af832d8864c1a8ff5549
Reviewed-on: http://review.couchbase.org/24026
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>
MB-7535 Start updater if there are update listeners

If there are update listeners waiting for indexing of
specific partitions up to certain sequences, trigger the
updater.

Change-Id: Iac5e96176de1e549372ae58c654e631fe8079155
Reviewed-on: http://review.couchbase.org/24031
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
Merge remote-tracking branch 'origin/2.0.1'

Change-Id: I0f4b565bb4bf551d5a87adcc5dcb1e7ba1c7ec49