XDCR flush requests

XDCR flush requests

Flush requests to delete the entire contents of bucket are not replicated to the remote cluster.

Performing a flush operation only deletes data on the local cluster. Flush is disabled if there is an active outbound replica stream configured.

If a bucket needs to be flushed on either the source or the destination of an XDCR stream, use the following operation sequence:
  1. Delete the XDCR stream.
  2. Flush the vBucket.
  3. Recreate the XDCR stream.

If this bucket is acting as more than one source or destination for XDCR, all streams need to be deleted before the flush and recreated afterward. This resets the XDCR stream entirely and results in all data being resent. Deleting and recreating the XDCR stream does not reset the stream or resend the data that has been synchronized.

Important: When replicating to or from a bucket, do not flush that bucket on the source or destination cluster. Flushing causes the vBucket state to become temporarily inaccessible and results in a "not_found” error. The error suspends replication.