Skip to content
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

Infinite retries if no internet connection #762

Open
berl-a opened this issue May 22, 2024 · 1 comment
Open

Infinite retries if no internet connection #762

berl-a opened this issue May 22, 2024 · 1 comment

Comments

@berl-a
Copy link

berl-a commented May 22, 2024

When there's no connection, Snowflake library goes into infinite loop, trying to reconnect to the database forever. Part of logs:

15:21:26.024 [] [] [pool-12-thread-1] INFO n.s.c.j.i.a.h.i.execchain.RetryExec - I/O exception (java.net.SocketException) caught when processing request to {s}->https://xxx.us-east-1.snowflakecomputing.com:443: Connection reset
15:21:26.025 [] [] [pool-12-thread-1] INFO n.s.c.j.i.a.h.i.execchain.RetryExec - Retrying request to {s}->https://xxx.us-east-1.snowflakecomputing.com:443
15:21:27.027 [] [] [pool-12-thread-1] INFO n.s.c.j.i.a.h.i.execchain.RetryExec - I/O exception (java.net.UnknownHostException) caught when processing request to {s}->https://xxx.us-east-1.snowflakecomputing.com:443: No such host is known (xxx.us-east-1.snowflakecomputing.com)
15:21:27.027 [] [] [pool-12-thread-1] INFO n.s.c.j.i.a.h.i.execchain.RetryExec - Retrying request to {s}->https://xxx.us-east-1.snowflakecomputing.com:443
15:21:29.029 [] [] [pool-12-thread-1] INFO n.s.c.j.i.a.h.i.execchain.RetryExec - I/O exception (java.net.UnknownHostException) caught when processing request to {s}->https://xxx.us-east-1.snowflakecomputing.com:443: xxx.us-east-1.snowflakecomputing.com
15:21:29.030 [] [] [pool-12-thread-1] INFO n.s.c.j.i.a.h.i.execchain.RetryExec - Retrying request to {s}->https://xxx.us-east-1.snowflakecomputing.com:443
15:21:33.030 [] [] [pool-12-thread-1] INFO n.s.c.j.i.a.h.i.execchain.RetryExec - I/O exception (java.net.UnknownHostException) caught when processing request to {s}->https://xxx.us-east-1.snowflakecomputing.com:443: xxx.us-east-1.snowflakecomputing.com
15:21:33.030 [] [] [pool-12-thread-1] INFO n.s.c.j.i.a.h.i.execchain.RetryExec - Retrying request to {s}->https://xxx.us-east-1.snowflakecomputing.com:443
15:21:37.032 [] [] [pool-12-thread-1] INFO n.s.c.j.i.a.h.i.execchain.RetryExec - I/O exception (java.net.UnknownHostException) caught when processing request to {s}->https://xxx.us-east-1.snowflakecomputing.com:443: xxx.us-east-1.snowflakecomputing.com
15:21:37.032 [] [] [pool-12-thread-1] INFO n.s.c.j.i.a.h.i.execchain.RetryExec - Retrying request to {s}->https://xxx.us-east-1.snowflakecomputing.com:443
15:21:41.034 [] [] [pool-12-thread-1] INFO n.s.c.j.i.a.h.i.execchain.RetryExec - I/O exception (java.net.UnknownHostException) caught when processing request to {s}->https://xxx.us-east-1.snowflakecomputing.com:443: No such host is known (When there's no connection, Snowflake library goes into infinite loop, trying to reconnect to the database forever. Logs:
15:21:26.024 [] [] [pool-12-thread-1] INFO n.s.c.j.i.a.h.i.execchain.RetryExec - I/O exception (java.net.SocketException) caught when processing request to {s}->https://xxx.us-east-1.snowflakecomputing.com:443: Connection reset
15:21:26.025 [] [] [pool-12-thread-1] INFO n.s.c.j.i.a.h.i.execchain.RetryExec - Retrying request to {s}->https://xxx.us-east-1.snowflakecomputing.com:443
15:21:27.027 [] [] [pool-12-thread-1] INFO n.s.c.j.i.a.h.i.execchain.RetryExec - I/O exception (java.net.UnknownHostException) caught when processing request to {s}->https://xxx.us-east-1.snowflakecomputing.com:443: No such host is known (xxx.us-east-1.snowflakecomputing.com)
15:21:27.027 [] [] [pool-12-thread-1] INFO n.s.c.j.i.a.h.i.execchain.RetryExec - Retrying request to {s}->https://xxx.us-east-1.snowflakecomputing.com:443
15:21:29.029 [] [] [pool-12-thread-1] INFO n.s.c.j.i.a.h.i.execchain.RetryExec - I/O exception (java.net.UnknownHostException) caught when processing request to {s}->https://xxx.us-east-1.snowflakecomputing.com:443: xxx.us-east-1.snowflakecomputing.com
15:21:29.030 [] [] [pool-12-thread-1] INFO n.s.c.j.i.a.h.i.execchain.RetryExec - Retrying request to {s}->https://xxx.us-east-1.snowflakecomputing.com:443
15:21:33.030 [] [] [pool-12-thread-1] INFO n.s.c.j.i.a.h.i.execchain.RetryExec - I/O exception (java.net.UnknownHostException) caught when processing request to {s}->https://xxx.us-east-1.snowflakecomputing.com:443: xxx.us-east-1.snowflakecomputing.com
15:21:33.030 [] [] [pool-12-thread-1] INFO n.s.c.j.i.a.h.i.execchain.RetryExec - Retrying request to {s}->https://xxx.us-east-1.snowflakecomputing.com:443
15:21:37.032 [] [] [pool-12-thread-1] INFO n.s.c.j.i.a.h.i.execchain.RetryExec - I/O exception (java.net.UnknownHostException) caught when processing request to {s}->https://xxx.us-east-1.snowflakecomputing.com:443: xxx.us-east-1.snowflakecomputing.com
15:21:37.032 [] [] [pool-12-thread-1] INFO n.s.c.j.i.a.h.i.execchain.RetryExec - Retrying request to {s}->https://xxx.us-east-1.snowflakecomputing.com:443

@berl-a
Copy link
Author

berl-a commented May 23, 2024

Libraries used:
Gradle: net.snowflake:snowflake-jdbc:3.13.30
Gradle: net.snowflake:snowflake-ingest-sdk:2.0.3

I'd expect the system to retry only as many times as it says in the maxRetryCount, i.e. 25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant