Skip to content

Fix shadow pg wal replay - #26

Merged
serprex merged 2 commits into
mainfrom
harshil/fix-shadow-wal-issue
Jun 18, 2026
Merged

Fix shadow pg wal replay#26
serprex merged 2 commits into
mainfrom
harshil/fix-shadow-wal-issue

Conversation

@harshil-goel

@harshil-goel harshil-goel commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Under backpressure in walshadow, the shadow pg connection is closed. When it tries to come back, it will read the WAL from out/. However the out/ directory is only written to after the entire block is written. We fix that by streaming the unwritten wal when the shadow pg tries to come back.

Fixes #23

@harshil-goel
harshil-goel force-pushed the harshil/fix-shadow-wal-issue branch from f6d395d to 5eb900b Compare June 18, 2026 09:21
@harshil-goel
harshil-goel requested a review from serprex June 18, 2026 09:25
@serprex
serprex merged commit d031216 into main Jun 18, 2026
5 checks passed
@serprex
serprex deleted the harshil/fix-shadow-wal-issue branch June 18, 2026 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crash Loop When starting Walshadow

2 participants