Disable Flush with XDCR on the source cluster

Details

Description

Hi,

Today "flush" is not xdcr-replicated to the remote cluster, but we can flush data from either source/ destination and the other cluster/replication is left intact ( no impact of flush)
I ve opened bug to either stop/ warn the user of the consequences of using Flush while XDCR is on-going http://www.couchbase.com/issues/browse/MB-6761

We ve discussed this a bit in the past, and realize that a number of combination can arise with enabling flush with xdcr clusters.

For example , in a unidirectional setup.
One can flush data bucket from source, and replication is not broken. The source cluster has no items and destination cluster has the existing items. With new load coming in, this leaves the clusters
in a somewhat inconsistent state. Failing replication for this, would be ideal.

Likewise for a destination-flush
One can flush data bucket from destination, and replication is not broken. The destination cluster has no items and source cluster has the existing items. With new load coming in, this leaves the clusters
in a somewhat inconsistent state. Failing replication for this, would be ideal.

And likewise on a Bidirectional replication setup.

In the event, that we decide to enable flush+ Xdcr, we will need to add the following to our test-metrics to make sure this feature works under multiple combinations.

Since replication will fail/inconsistent with Flush, is it better to disable/ disallow flush + xdcr?

Junyi Xie (Inactive)
added a comment - 03/Oct/12 4:10 PM Just talked to Aliaksey A., it is not hard to implement disabling flush/delete bucket on source side during XDCR, but for destination side, we are not 100% clear how to do that.