Max retry reached for the download of chunk after 6 hrs #2023
Labels
question
Issue is a usage/other question rather than a bug
status-triage_done
Initial triage done, will be further handled by the driver team
I am getting the below errors while retrieving a large dataset. An exception occurs after 6 hrs every time I execute it.
JDBC driver : - snowflake-jdbc-3.21.0
OS : - Windows
Java : - 17
Jan 08, 2025 5:50:33 PM net.snowflake.client.jdbc.SnowflakeUtil logResponseDetails SEVERE: Response status line reason: Forbidden Jan 08, 2025 5:50:33 PM net.snowflake.client.jdbc.SnowflakeUtil logResponseDetails SEVERE: Response content: <?xml version="1.0" encoding="UTF-8"?> <Error><Code>AccessDenied</Code><Message>Request has expired</Message><X-Amz-Expires>21599</X-Amz-Expires><Expires>2025-01-08T11:58:11Z</Expires><ServerTime>2025-01-08T12:20:32Z</ServerTime><RequestId>xxxxxxxxxx</RequestId><HostId>/nCa3X0hEvZn3xxxx3xKroHlABPHebNly6NdTfpkkkkLByxV8k8+wythIcWtYKUg/5782sFMc=</HostId></Error> net.snowflake.client.jdbc.SnowflakeSQLLoggedException: JDBC driver internal error: Max retry reached for the download of chunk#168 (Total chunks: 794) retry: 7, error: net.snowflake.client.jdbc.SnowflakeSQLException: JDBC driver encountered communication error. Message: Error encountered when downloading a result chunk: HTTP status: 403. at net.snowflake.client.jdbc.DefaultResultStreamProvider.getInputStream(DefaultResultStreamProvider.java:71) at net.snowflake.client.jdbc.SnowflakeChunkDownloader$2.call(SnowflakeChunkDownloader.java:1029) at net.snowflake.client.jdbc.SnowflakeChunkDownloader$2.call(SnowflakeChunkDownloader.java:943) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840) . at net.snowflake.client.jdbc.SnowflakeChunkDownloader.getNextChunkToConsume(SnowflakeChunkDownloader.java:633) at net.snowflake.client.core.SFResultSet.fetchNextRowUnsorted(SFResultSet.java:240) at net.snowflake.client.core.SFResultSet.fetchNextRow(SFResultSet.java:206) at net.snowflake.client.core.SFResultSet.next(SFResultSet.java:304) at net.snowflake.client.jdbc.SnowflakeResultSetV1.next(SnowflakeResultSetV1.java:123) at SnowflakeMain.main(SnowflakeMain.java:57)
Can you please help us to tackle this issue with a long execution dataset? I mean when retrieving data beyond 6 hrs. I have added the main program below.
` String url = "jdbc:snowflake://xxxxxxx.us-east-1.snowflakecomputing.com/?db=xxxx&warehouse=xxxx&CLIENT_SESSION_KEEP_ALIVE=true&CLIENT_SESSION_KEEP_ALIVE_HEARTBEAT_FREQUENCY=900";
String driverClass = "net.snowflake.client.jdbc.SnowflakeDriver";
String username = "xxxx";
String password = "xxxx";
String query = "select * from PUBLIC.EMPLOYEE_INFO_100M order by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20";
The text was updated successfully, but these errors were encountered: