Repository navigation
Conversation
|
❗ By default, the pull request is configured to backport to all release branches.
|
c1056c5 to
1987fab
Compare
|
There was 1.29 release without this fix. Could you please consider merging it for 1.29.1 or 1.30 at least? |
|
@gbartolini , @jsilvela , what would it take to merge this in? |
|
a second approval, @redbaron. You already have mine |
|
we are having this problem too. Can this be merged? |
|
I also put another PR to fix the underlying issue (https://github.com/cloudnative-pg/cloudnative-pg/pull/10624) which allows for NULL values for |
pg_stat_wal view shows WAL generation stats and only primary generates WAL. This resolves problem where pg_stat_wal can be empty on a replica which was never a primary before, which causes metric collection to fail on a NULL conversion. Signed-off-by: Maxim Ivanov <[email protected]>
1987fab to
9a3c093
Compare
|
Thanks for digging into this, and sorry it sat for a while. Looking closer, I don't think gating on The actual defect is that I'm going to close this in favor of a fix at the scan site. Appreciate you tracking down the original crash, that part of the diagnosis was right. |
|
❗ By default, the pull request is configured to backport to all release branches.
|
If they are standby they don't generate WAL on their own and querying Are you saying there can be a situation where |
Good point, you're right.
One smaller concern remains. Either way, checking primary vs replica is just a proxy for the real condition (is |
pg_stat_wal view shows WAL generation stats and only primary generates WAL.
This resolves problem where pg_stat_wal can be empty on a replica which was never a primary before, which causes metric collection to fail on a NULL conversion.
fixes #9106