-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intermittend failure on multi failover configuration of sqlserver #606
Comments
Not sure what are the |
I'll talk to the DBAs to see of we I can get more info. |
Here is a log of failure
|
I tried to reproduce having multiple IPs for a name with one accepting and closing connection. The MS driver behave similarly, if it hit the IP disconnecting it gives failure. |
Thank you so much for trying this. My deployment is in a complex network architecture and most likely culprits are istio or some other network layers rewriting some adresses and responding when they shouldn't. |
I'm having an issue connecting to a sqlserver database with multi failover configuration.
I'm using python with freetds as driver, and this happens both in pymssql and pyobc.
The database address (host/ domain name) resolves into 2 ip addresses.
I believe this commit should add functionality to auto-use a different address when it is available, but that is not what I see happening.
When I connect and re-connect multiple times the connection fails about half of the time, which I interpret as: I'm trying to connect to the inactive sqlserver copy. But the trace logs (reproduced below) indicate that a connection to both instances is made.
I'm using FreeTDS 1.3.6 on ubuntu. with unixODBC 2.3.9.
Are there settings I should change so that the connection is retried on a different ip adress?
details
in the freetds logs (trace) of a failing connection attempt I see the following events:
tds_setup_socket: connect(2) returned "Operation now in progress"
)On successful connections I see:
tds_setup_socket: connect(2) returned "Operation now in progress"
)The text was updated successfully, but these errors were encountered: