Description
There's a small chance of the race condition when using priority backup with extremely small reconnect delay (0). In that case, the failover transport will get into inconsistent state. The client will stay connected to the "non-priority" broker, but the priority backup will not be created due to this inconsistency.
The solution is to synchronise handling of connection failure with the reconnect mutex.