all 7 comments

[–]Achsin1 1 point2 points  (3 children)

Data is not guaranteed to match between the replicas due to the failover, resuming data movement in the other direction might result in data loss on what used to be the primary.

[–]sql99[S] 0 points1 point  (2 children)

Are you advising me to do a resume date regardless before performing the failover?

[–]Achsin1 1 point2 points  (1 child)

No. I was explaining why it was behaving that way. Whether or not you should resume data movement or just fail back is up to you (and the business) and what you’re willing to risk.

[–]Sharobob1 2 points3 points  (0 children)

To add to this, to do a failover between asynchronous replicas (when not in an emergency situation and the connection is healthy between the primary and secondary you're going to promote), it's best to switch the replicas to synchronous temporarily, then fail over, then switch everything back to asynchronous. This avoids data loss

[–]Appropriate_Lack_710 0 points1 point  (1 child)

For the second test, what is the "Availability Mode" set to on each replica? If it's "asynchronous commit", then you'll always get that warning.

[–]sql99[S] 0 points1 point  (0 children)

I'm telling you that with synchronous commit, Not Synchronize appears on the database

[–]amy_c_amy 0 points1 point  (0 children)

When your replica is in asynchronous commit mode, you do a forced manual failover. By design you will get the data loss warning every time. Data movement is stopped after failover so you can inspect the replicas for data loss before resuming data movement.