Groups | Blog | Home
all groups > sql server replication > april 2007 >

sql server replication : Sync mirroring - Ack failure from mirror DOES or DOES not cause rb



Hilary Cotter
4/18/2007 12:00:00 AM
Answers inline.
[quoted text, click to view]

read the complete section - specifically this.

"When the principal receives its response from the mirror, the principal can
then proceed to the next hardening.
Despite the close coordination between principal and mirror when safety is
FULL, database mirroring is not a distributed transaction and does not use a
two-phase commit.

. In database mirroring, you have two transactions being played out on
two servers, not one transaction distributed across them.

. Database mirroring does not use the partner servers as resource
managers in a distributed transaction

. Database mirroring transactions do not go through prepare and commit
phases.

. Most importantly, unlike a distributed transaction, failures to
commit on the mirror will not cause a transaction rollback on the principal.


"

Tha transaction is hardened on the principal and then written to the mirror.
Where it is hardened there. Then the next transaction can be hardened on the
log buffer on the principal. What will happen is that at some point later
subsequent transactions will fail to be committed on the principal.

[quoted text, click to view]

Methodology
4/18/2007 4:12:00 AM
this link

http://msdn2.microsoft.com/en-us/library/ms179344.aspx

say this:

" The principal server writes the transaction to the database and,
concurrently, sends the log record to the mirror server. The principal server
waits for an acknowledgement from the mirror server before confirming either
of the following to the client: a transaction commit or a rollback. "

however this link:

http://www.microsoft.com/technet/prodtechnol/sql/2005/dbmirror.mspx

say this:

"Most importantly, unlike a distributed transaction, failures to commit on
the mirror will not cause a transaction rollback on the principal."

so which is it? failure of ack reponse from mirror DOES or DOES not cause a
rollback at some level on the primary?
Methodology
4/18/2007 7:50:01 AM
and subsequent uncommitted transactions can be referenced in queries through
'nolock'?

[quoted text, click to view]
Hilary Cotter
4/19/2007 12:00:00 AM
I did some tests and what I find is that when the mirror goes offline in
high safety mode the principal continues to function, i.e. is writeable, but
mirroring is suspended. the principal is still writeable.

[quoted text, click to view]

AddThis Social Bookmark Button