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

Bug: position can be out of range of replication slot #146

Open
lyuboxa opened this issue May 9, 2024 · 0 comments
Open

Bug: position can be out of range of replication slot #146

lyuboxa opened this issue May 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@lyuboxa
Copy link
Contributor

lyuboxa commented May 9, 2024

Bug description

Replication slots can be reused or preconfigured. An issue can occur where the replication slot was replaced during runtime, or the replication slot was preconfigured and modified during connector downtown. In this situation a position can contain an LSN which points to WAL which was cleaned up.

The solution is to ensure that the position LSN is within the replication slot range during open, when the replication slot exists.

Steps to reproduce

  1. Create table t1
  2. Start connector in CDC mode for table t1 and replication slot name slot_t1
  3. Insert changes in t1
  4. Stop connector
  5. Delete replication slot and re-create it.
  6. Insert few more changes in t1
  7. Resume connector

Version

latest

@lyuboxa lyuboxa added bug Something isn't working triage Needs to be triaged labels May 9, 2024
@simonl2002 simonl2002 removed the triage Needs to be triaged label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

2 participants