Details

Description

When running my wip commit that ensures things are persisted on replica and new master before initiating takeover (http://review.couchbase.org/18798) I sometimes get rebalance 'stuck'.

Seemingly because items are replicated & persisted (verified by looking at .couch files), but affected checkpoint is not marked as persisted.

In this particular case it happened to vbucket 13.

What my change is doing is I'm creating checkpoint (using create checkpoint command) after establishing replication stream. And then I'm waiting until checkpoint prior to that is persisted. But in this case stats tell me that checkpoint 0 is persisted instead of 2.