Skip to content

Commit d84c359

Browse files
[postgres] classify slot read failing due to inactive sync standby (#3523)
Co-authored-by: Kunal Gupta <[email protected]>
1 parent fbbb164 commit d84c359

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

flow/alerting/classifier.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,11 @@ func GetErrorClass(ctx context.Context, err error) (ErrorClass, ErrorInfo) {
437437
return ErrorNotifySlotInvalid, pgErrorInfo
438438
}
439439

440+
if strings.Contains(pgErr.Message,
441+
`specified in parameter "synchronized_standby_slots" does not have active_pid`) {
442+
return ErrorRetryRecoverable, pgErrorInfo
443+
}
444+
440445
case pgerrcode.InvalidParameterValue:
441446
if strings.Contains(pgErr.Message, "invalid snapshot identifier") {
442447
return ErrorNotifyInvalidSnapshotIdentifier, pgErrorInfo

0 commit comments

Comments
 (0)