Hi everyone!
I've make a test environment with 3 servers:
"Comp2" and "Comp3" servers host AlwaysOn Availability Group with Listener in Synchrounos Mode. "Comp2" - primary replica, "Comp3" - secondary replica
"Comp1" server hosts Service Broker with route on AAG Listener
In this environment I send simple messages by Service Broker from "Comp1" (Service Broker host) to "Comp2" (primary replica AAG).
It works good: messages are transmitted fast, in proper order and so on.
Then I make a failover on "Comp2", so primary replica moves to "Comp3", and I've got 2 cases:
1. There is no problem with transmitting of Service Broker messages, if Initiator's sys.transmission_queue is empty
In this case existing conversation handles works fine: messages are transmitted to "Comp2" correctly
2: If there are messages in Initiator's sys.transmission_queue in moment of a failover ("Comp2" -> "Comp3") then I've got a problem with transmitting Service Broker messages from "Comp1" to "Comp3".
These messages and all new messages sent in existing conversation handle aren't transmitted to "Comp3", so sys.transmission_queue on "Comp1" grows.
Have you any idea what's the problem?
Microsoft SQL Server 2014 (SP1-CU6-OD) (KB3167392) - 12.0.4457.0 (X64) May 26 2016 23:44:09 Copyright (c) Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 6.3 <X64> (Build 9600: )
http://www.t-sql.ru