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
{{ message }}
Repository navigation
Commit 94cb791
Browse filesBrowse the repository at this point in the historyBrowse files
fix(replication,webapp): recover leadership after a failed leader-lock extend
Run replication now recovers on its own after a Redis restart or outage.
The leader could previously lose its lock without noticing and log
"Cannot extend an already-expired lock" every few seconds while holding
the replication slot open, until the server was restarted. It now
re-acquires the lock, or steps down once and re-elects.
Deployments running under a process supervisor can set
`RUN_REPLICATION_MAX_RESUBSCRIBE_ATTEMPTS` (or the session equivalent)
to exit and be restarted when a replication stream cannot recover. It
defaults to 0, which keeps retrying and preserves existing behavior.
Mono-RevId: 465d1f9bd0bb720320c8dd294dde3c3a9b88f1d9
Run replication now recovers on its own after a Redis restart or outage, in place of logging "Cannot extend an already-expired lock" and holding the replication slot open until the server is restarted. Deployments running under a process supervisor can set `RUN_REPLICATION_MAX_RESUBSCRIBE_ATTEMPTS` to exit and be restarted when a stream cannot recover.
0 commit comments