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)
| 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. |
| 473 | func 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 |