MB-20822: When loading persisted failovers, remove any erroneous entries 02/67702/8
authorManu Dhundi <manu@couchbase.com>
Tue, 4 Oct 2016 20:31:33 +0000 (13:31 -0700)
committerDave Rigby <daver@couchbase.com>
Tue, 11 Oct 2016 07:51:36 +0000 (07:51 +0000)
commit3fb0f02cbed9a7ea90af8b59efcf0983794efd2a
tree21f9fc14215e561b19bc38d17c3132857abc248c
parent74f9b8f9212aa20611ba0e9fb5962a550e58385d
MB-20822: When loading persisted failovers, remove any erroneous entries

Due to bugs in older releases (and also possibly in future releases),
we may end up storing wrong failover table on disk. Hence during
warmup while loading failover table from disk we must prune out any
wrong entries.

Also, in the past we have seen erroneous entries with vb_uuid == 0.
So we make sure that vb_uuid is not generated as a valid value and
prune out any entry that has vb_uuid == 0

Change-Id: I630cb7fb1ea9a711432be64f36924d04fcd5e361
Reviewed-on: http://review.couchbase.org/67702
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
docs/stats.org
src/failover-table.cc
src/failover-table.h
tests/ep_testsuite.cc
tests/module_tests/failover_table_test.cc