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

Function isWorkerConnPoolTimeoutError

controlplane/session_mgr.go:472–474  ·  view source on GitHub ↗

isWorkerConnPoolTimeoutError reports whether err is the worker-side "failed to obtain connection from pool" session-create failure (duckdbservice acquires the single-session DB connection with a 30s timeout; see the MaxOpenConns=1 isolation contract). A worker returning this is wedged — its connecti

(err error)

Source from the content-addressed store, hash-verified

470// session because it already holds its configured maximum (MaxSessions). The
471// worker maps this to gRPC ResourceExhausted with the duckdbservice message
472// "max sessions reached (N)", which propagates through the wrapped error chain.
473func isWorkerSessionCapError(err error) bool {
474 return err != nil && strings.Contains(err.Error(), "max sessions reached")
475}
476
477// isWorkerS3CacheRestoreError reports whether err is the worker-side failure

Callers 2

Calls 1

ErrorMethod · 0.45

Tested by 1