Re: Sync Failed; Record is Deleted -- Append Confusion
- From: "David W. Fenton" <XXXusenet@xxxxxxxxxxxxxxxxxxx>
- Date: 23 Jul 2009 18:22:27 GMT
mikej711 <mikej711@xxxxxxxxxxx> wrote in
news:ad7b190a-89a1-4a28-a2ff-31dd6b594f19@xxxxxxxxxxxxxxxxxxxxxxxxxxx
m:
I'm still confused. Say I have two replicas, A and B. A has more
recent data changes so should overwrite B but B has a corrupted
table and won't sync with A. I make new replica C and append all
of B's data into it, minus the one corrupted record of course.
No, you DELETE the one corrupted record and recreate its data in a
new record.
Now, in reality, A
has more recent changes then B, but I'm no longer using B, I'm
using C, which has more recent timestamps than A because C's data
was just appended. Therefore, though I intend C to mirror B and be
overwritten by A, wouldn't C, with its new timestamps, falsely
overwrite A, resulting in data loss?
The key is to get rid of the corrupted record(s) and keep all the
rest. You recover what you can from the corrupted records and create
new records for those. This may involve more than one table if
there's referential integrity and the corrupted record has child
records. In that case, you'd make copies of the child records,
delete them and re-append the data (minus the replication fields)
when the parent record has been recreated.
Another point that may not be obvious:
When making copies of the records you're going to recreate, you omit
any of the replication fields, as you're not going to use those in
any way. You're preserving your data, not the replication
information.
--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
.
- Follow-Ups:
- Re: Sync Failed; Record is Deleted -- Append Confusion
- From: mikej711
- Re: Sync Failed; Record is Deleted -- Append Confusion
- References:
- Sync Failed; Record is Deleted -- Append Confusion
- From: mikej711
- Re: Sync Failed; Record is Deleted -- Append Confusion
- From: David W. Fenton
- Re: Sync Failed; Record is Deleted -- Append Confusion
- From: mikej711
- Sync Failed; Record is Deleted -- Append Confusion
- Prev by Date: Re: Sync Failed; Record is Deleted -- Append Confusion
- Next by Date: Re: Sync Failed; Record is Deleted -- Append Confusion
- Previous by thread: Re: Sync Failed; Record is Deleted -- Append Confusion
- Next by thread: Re: Sync Failed; Record is Deleted -- Append Confusion
- Index(es):
Relevant Pages
|