Skip to content

fix: guard DumpCheckpoint against nil replClient and copyChunker#641

Merged
morgo merged 2 commits intoblock:mainfrom
aparajon:fix/guard-dump-checkpoint
Feb 26, 2026
Merged

fix: guard DumpCheckpoint against nil replClient and copyChunker#641
morgo merged 2 commits intoblock:mainfrom
aparajon:fix/guard-dump-checkpoint

Conversation

@aparajon
Copy link
Collaborator

Summary

DumpCheckpoint can be called before setup completes (e.g., when stopping a migration early). Previously this would panic on nil pointer dereference. Now it returns ErrWatermarkNotReady, which callers already handle.

DumpCheckpoint can be called before setup completes (e.g., when stopping
a migration early). Previously this would panic on nil pointer dereference.
Now it returns ErrWatermarkNotReady, which callers already handle.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@aparajon aparajon marked this pull request as ready for review February 26, 2026 14:55
@morgo morgo enabled auto-merge February 26, 2026 15:02
@morgo morgo self-requested a review February 26, 2026 15:12
@morgo morgo merged commit c6acb57 into block:main Feb 26, 2026
9 of 10 checks passed
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.

2 participants