Merge pull request #1295 from basho/bch-disable-fullsync-on-disconnect

RTS-1820: Disable fullsync when clusters are disconnected
This commit is contained in:
Brett Hazen 2017-03-16 15:07:27 -06:00 committed by GitHub
commit 4b74fc9e61

View File

@ -354,6 +354,7 @@ connect_clusters([AFirst|_] = ANodes, [BFirst|_] = BNodes,
disconnect_clusters(SourceNodes, SourceLeader, RemoteClusterName) ->
lager:info("Disconnect the 2 clusters"),
repl_util:disable_realtime(SourceLeader, RemoteClusterName),
repl_util:disable_fullsync(SourceLeader, RemoteClusterName),
rt:wait_until_ring_converged(SourceNodes),
repl_util:disconnect_cluster(SourceLeader, RemoteClusterName),
repl_util:wait_until_no_connection(SourceLeader),