Commit 1ab831d
bump lib/pq ftom 1.2 to 1.10
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#1013
lib/pq#723
lib/pq#897
lib/pq#870
grafana/grafana#299571 parent a1d5e64 commit 1ab831d
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
0 commit comments