You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing "broken pipe" errors when working with CRDB using sqlx.
The issue seemed to be the tcp connections were diconnected while the conns
in db driver (pq) still has stale connection.
It happens more often when the DB is behind a proxy.
In our cases, the pods were proxied by the envoy sidecar.
There were other instances on the community reporting similar issues,
and took different workaround by sebding perodic dummy queries in app
mimicing keepalive, enlenghthen proxy idle timeout, or shortening the
lifetime of db conn.
This has been reported and fixed by the lib/pq upstream in v1.9+
lib/pq#1013lib/pq#723lib/pq#897lib/pq#870grafana/grafana#29957
'write tcp 172.22.6.246:53576-\u003e 172.30.236.26:5432: write: broken pipe' this error is not treated as special error and query to database fails.
The text was updated successfully, but these errors were encountered: