unpairing couchdb replication

Bug #424386 reported by Chad Miller
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
desktopcouch
Fix Released
Medium
Chad Miller

Bug Description

For replication, we already support pairing, but we must also support un-pairing machines.

For pairing, we require that both machines be present and talking to each other, but we do no want to require that for un-pairing. The trick becomes how to set the offline machine not to replicate to us any longer. Since the replication daemon is already noticing when the remote machine appears on the network, that daemon is the best place to put logic to finish the step of un-pairing, remote from local.

For local records that represent hosts we want to un-pair with, we should add a new attiribute,
'unpaired'=True
to the top level of the record.

For finding pairings, the pairing tool must ignore records that have {'unpaired'=True} set, and for new pairings, must remove any records that have {'unpaired'=True} .

The replication daemon must scan local records when a new host appears on the network, and if the local record has {'unpaired'=True} , then it must connect to the remote management database, remove all records that have the local host id as a pairing target, and then remove the local records that have the remote hostid as a pairing target.

Chad Miller (cmiller)
Changed in desktopcouch:
assignee: nobody → Stuart Langridge (sil)
importance: Undecided → Medium
status: New → Confirmed
Chad Miller (cmiller)
tags: added: cmiller-k-alpha6
Chad Miller (cmiller)
Changed in desktopcouch:
milestone: none → w21-karmic-alpha6
Chad Miller (cmiller)
Changed in desktopcouch:
status: Confirmed → Fix Committed
assignee: Stuart Langridge (sil) → Chad Miller (cmiller)
Chad Miller (cmiller)
Changed in desktopcouch:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.