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
fix(monitoring): prevent catalog pool deadlock in AddCDCBatchTablesForFlow (#3557)
Move PeerDBMetricsRecordAggregatesEnabled check before transaction start
to avoid nested catalog pool connection acquisition. Previously, the
function would:
1. Acquire connection for transaction (pool.Begin)
2. Call PeerDBMetricsRecordAggregatesEnabled which internally acquires
another connection via `dynLookup > GetCatalogConnectionPoolFromEnv`
With concurrent calls and pool size of 3, all connections would be held
by transactions while each waited for a 4th connection to check the
dynamic config, causing deadlock with idle transactions stuck in BEGIN.
Fixes deadlock observed with 3 connections in "idle in transaction"
state blocking all subsequent catalog operations.
0 commit comments