Skip to content

Commit ce1faff

Browse files
committed
Detect "can no longer access replication slot" error.
1 parent 01cc64d commit ce1faff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/module-postgres/src/replication/WalStream.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,8 @@ export class WalStream {
385385
if (
386386
/incorrect prev-link/.test(e.message) ||
387387
/replication slot.*does not exist/.test(e.message) ||
388-
/publication.*does not exist/.test(e.message)
388+
/publication.*does not exist/.test(e.message) ||
389+
/can no longer access replication slot/.test(e.message)
389390
) {
390391
container.reporter.captureException(e, {
391392
level: errors.ErrorSeverity.WARNING,

0 commit comments

Comments
 (0)