We set up transactional replication on a database that is part of an AlwaysOn Availability Group on our work environment:
- The primary is SP1 and the secondary replica is SS2.
- The distributor is on another server SD3. The replication is working fine.
To implement this, we follow this documentation:
- Configure Replication for Always On Availability Groups (SQL Server)
- Setting up Replication on a database that is part of an AlwaysOn Availability Group
The problem is when we perform a failover from my primary SP1 to our secondary replica SS2. The replication monitor stills showing the information form the old primary SP1 (that became the secondary after the failover). And the more important is that the log reader even pick up transactions from this old primary SP1. That means if the SP1 server failed, the replication will not work anymore.
Any idea? Have you make a replication with an AG subscriber and it's was working fine? Recommendations or advices?