applyHTTPFSRetryBudget widens httpfs's retry budget for transient S3 throttling. S3 answers a sustained request burst with HTTP 503 SlowDown ("please reduce your request rate"). That's pure throttling — transient and safe to retry — and httpfs DOES retry 503 (RunRequestWithRetry → ShouldRetry in du
(db *sql.DB)
| 1053 | // the recycle wipe (see duckdbservice.wipePersistedSecrets) is what keeps |
| 1054 | // workers from accumulating stale persisted secrets. |
| 1055 | if cfg.PinSecretDirectory { |
| 1056 | if secretDir := SecretDirectory(cfg); secretDir != "" { |
| 1057 | if _, err := db.Exec(fmt.Sprintf("SET secret_directory = '%s'", secretDir)); err != nil { |
| 1058 | slog.Warn("Failed to set DuckDB secret_directory.", "secret_directory", secretDir, "error", err) |
| 1059 | } else { |
| 1060 | slog.Debug("Set DuckDB secret_directory.", "secret_directory", secretDir) |
| 1061 | } |
| 1062 | } |
| 1063 | } |
| 1064 | |
| 1065 | // Load configured extensions |
| 1066 | if err := LoadExtensions(db, cfg.Extensions); err != nil { |
| 1067 | slog.Warn("Failed to load some extensions.", "user", username, "error", err) |
| 1068 | } |
no test coverage detected