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

Return error of provided change ID is too old #240

Merged
merged 2 commits into from
Jul 23, 2024
Merged

Conversation

pborzenkov
Copy link
Contributor

The PR fixes client's behavior to return an error if the change ID provided to subscription handler
is too old and already recycled on the server side.

The PR also introduces DNS resolve timeout to make sure something is printed to the logs if DNS resolve
takes too much time.

If the client subscribes with known change ID fail the request in
case Corrosion returns a change with a gap, meaning the original change
has already been recycled. Instead of silently ignoring the error
force the client to subscribe from scratch.
Otherwise they may take a while without printing anything to the logs,
which makes it really hard to debug problems.
@pborzenkov pborzenkov marked this pull request as ready for review July 23, 2024 14:00
@pborzenkov pborzenkov merged commit d78072d into main Jul 23, 2024
4 checks passed
@pborzenkov pborzenkov deleted the fix-change-skip branch July 23, 2024 14:53
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