Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgres connector cannot resume if no events in CDC stream received #2287

Open
karolisg opened this issue Jan 2, 2024 · 1 comment
Open

Comments

@karolisg
Copy link
Contributor

karolisg commented Jan 2, 2024

This bug happens when we don't receive any message in CDC stream after reading the initial snapshot of data in postgres database.
In this case, we have LSN of publication slot, which can be used for snapshotting done event.

https://link.excalidraw.com/readonly/cBRn1ElaavxaTJtJ6CvP
Screenshot 2024-01-02 at 15 04 44

@chubei
Copy link
Contributor

chubei commented Jan 2, 2024

Yes, we should send a Some(OpIdentifier::new(lsn, MAGIC_NUMBER)) to make it resumable once snapshotting is done.

@karolisg karolisg changed the title Postgres connector cannot resume if no events in CDC stream came Postgres connector cannot resume if no events in CDC stream received Jan 2, 2024
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

No branches or pull requests

2 participants