Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4689

How does the secondary database know that it has caught up the end of log on the primary database?

$
0
0

From the URL below about "How Synchronization Works on a Secondary Replica" , It describes that  "Once the hardened log on the secondary database has caught up the end of log on the primary database, the state of the secondary database is set to SYNCHRONIZED. "

My question is how does the secondary database know that it has caught up the end of log on the primary database?

Suppose there are five transaction log records in primary database, and three of them transfered to the secondary database, how does the secondary database confirm that there are two remains log records haven't arrive? Even if all of the five records transfered to the secondary database, how does it know there is no log records left in the primary database ?

https://docs.microsoft.com/en-us/sql/database-engine/availability-groups/windows/availability-modes-always-on-availability-groups?view=sql-server-2017



Please click the Mark as Answer button if a post solves your problem!


Viewing all articles
Browse latest Browse all 4689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>