Skip to content

Commit 2c38f2d

Browse files
Increment HTTP Timeouts (#93)
I have seen some Polaris REST servers to respond slowly when many tables updated. For example, below is an example of inserting 100 tables in a single TX: ``` WARNING: Timeout was reached WARNING: Operation timed out after 20002 milliseconds with 0 bytes received DEBUG: cleaning up libcurl WARNING: HTTP request failed Operation timed out after 20002 milliseconds with 0 bytes received COMMIT ``` So, let's bump the timeouts a bit more, especially the TOTAL_TIMEOUT_MS, which is the actual commit time for REST catalogs.
1 parent aa687ad commit 2c38f2d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pg_lake_iceberg/src/http/http_client.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@
3535
#include <ctype.h>
3636
#include <curl/curl.h>
3737

38-
/* 5 second */
39-
#define CONNECT_TIMEOUT_MS 5000
40-
4138
/* 20 seconds */
42-
#define TOTAL_TIMEOUT_MS 20000
39+
#define CONNECT_TIMEOUT_MS 20000
40+
41+
/* 180 seconds */
42+
#define TOTAL_TIMEOUT_MS 180000
4343

4444

4545
typedef enum

0 commit comments

Comments
 (0)