MCPcopy Create free account
hub / github.com/PostHog/duckgres / applyHTTPFSRetryBudget

Function applyHTTPFSRetryBudget

server/server.go:1055–1065  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 }

Callers 3

ConfigureDBConnectionFunction · 0.85
ActivateDBConnectionFunction · 0.85

Calls 1

ExecMethod · 0.65

Tested by

no test coverage detected