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

fix: Completely disable ReplicationClient's auto-reconnection logic #255

Closed
wants to merge 5 commits into from

Conversation

alco
Copy link
Member

@alco alco commented Aug 5, 2024

Some changes to make some types of test failure less likely.

Recent example - https://github.com/electric-sql/electric-next/actions/runs/10256059321/job/28374360808?pr=254. These happen occasionally but are impossible to reproduce deliberately. I suspect the issue is related to the use of persistent slot and auto-reconnection logic that results Postgres delivering a logical message with a lower WAL offset than the one in ReplicationClient's state.

I'm suspecting this is the reason for some hard-to-reproduce transient
errors we've seen in tests.
…AL offsets

This used to be necessary before the updated handling of WAL offsets was
committed in e9a05f8
If we see transient errors caused by the violation of our assumptions
about WAL offset's monotonic growth, this should have debug that.
@alco alco force-pushed the alco/logical-replication-lsn branch from 7a9079b to 3f219cb Compare August 6, 2024 08:32
@alco alco changed the title wip fix: Completely disable ReplicationClient's auto-reconnection logic Aug 6, 2024
@alco alco marked this pull request as ready for review August 6, 2024 08:39
@alco
Copy link
Member Author

alco commented Aug 7, 2024

Moved to electric-sql/electric#1486.

@alco alco closed this Aug 7, 2024
@alco alco deleted the alco/logical-replication-lsn branch August 7, 2024 07:56
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.

1 participant