Hello!
We have a new setup of SQL Server 2014 running 12.0.2430. We have two servers that are set up in AlwaysOn High Availability, which are hosting a database in an AG with a valid listener. Everything seems fine and is working as expected in terms of HA, except for the following:
We have a scheduled job that was deployed to both servers in the HADRON cluster. It runs a stored procedure in the db, which creates some temp tables and updates some records. I was fully expecting that the job would fail on the server that is the secondary, however, we have observed that, when we set the secondary to be non-readable, the job will run on both the primary and the secondary, routing the traffic to the primary in both instances. When we set the secondary to readable, this behavior goes away.
What gives? Is this expected?
Thanks in advance for any info you can provide.
Thanks!
-Bill S.