When AG Failovers , what happens to open txns ?

  • Hi All,

    Need help in understanding the behavior when AG fails over to other nodes.

    Assume that 10 SPID'S have started a transaction and doing some DML operations. In the middle AG fail over happened,

    what happens to those 10 open txns ?

    Env : SQL 2012 and 2016 EE

    Regards,

    Sam

  • Open transactions at the time of an AG failover experience the same thing as they would when you force the database offline or the server crashes: those transactions will be rolled back during the UNDO phase of database recovery on the new Primary replica, performed as part of switching roles on the new Primary.

    Eddie Wuerch
    MCM: SQL

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply