Connection acquisition timeout: JDBC connection pool exhaustion
Goal Determine whether a connection acquisition timeout should be treated as transient pool exhaustion or as a trigger to fail over to a secondary database. The pool is shared across concurrent request threads, and acquisition waits are bounded by maxWait. Constraints Connection pool implementations differ on whether exhaustion triggers automatic failover or