
A subset of the checks done at connection creation time need to be done at query routing time. This guarantees that the connection is closed if the server no longer qualifies as a valid candidate. Added teset case that checks that a change in the replication topology correctly breaks the connection.