[Ephemeral]: MB-23734: Handle DCP backfill failures 15/77215/5
authorManu Dhundi <manu@couchbase.com>
Fri, 21 Apr 2017 22:56:59 +0000 (15:56 -0700)
committerDave Rigby <daver@couchbase.com>
Mon, 24 Apr 2017 09:42:10 +0000 (09:42 +0000)
commit96f2d6c9cd628078e92aa6543f01da629e511e2e
tree00fd83c5063cecad6b91381043f125daee03e432
parent3eeff0fa5968384c7d454639669fa4bf6b1f445a
[Ephemeral]: MB-23734: Handle DCP backfill failures

When a DCP backfill task is run there could be failures. We must handle
the failures gracefully.

This commit handles any failures in DCP backfill in Ephemeral buckets.
Upon a failure we close the stream and the DCP client can retry at
a later time.

Change-Id: I2aeffb9baf7d5a8ac367b129470741af7806e710
Reviewed-on: http://review.couchbase.org/77215
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
src/dcp/backfill_memory.cc
src/dcp/stream.cc
src/dcp/stream.h
tests/mock/mock_stream.h
tests/module_tests/dcp_test.cc