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

changefeedccl: Fix error handling in mixed version state #93155

Merged
merged 1 commit into from
Dec 7, 2022

Conversation

miretskiy
Copy link
Contributor

Prior PR #90810 changed error handling approach used by CDC to be "retry by default".

The above PR failed to account for some of the
situations that may arrise in mixed version state. In particular, when upgrading, if the aggregator node gets restarted with the new version, while the coordinator still runs old binary, and the new aggregator encounters a retryable error, that error would not be explicitly marked as retryable, causing the old coordinator binary to treat the error as a terminal error.

Other combination (new coordinator, old aggregator) is not succeptible to this situation.

This PR partially reverts changes in the #90810 so previously retryable errors continue to be explicitly marked as retryable.

There is no need to introduce version gates since the error handling should be backward compatible, and with this PR, operate correctly in the mixed version state.

Epic: None

Release note: none

@miretskiy miretskiy requested a review from a team as a code owner December 6, 2022 20:14
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Prior PR cockroachdb#90810 changed error handling approach used
by CDC to be "retry by default".

The above PR failed to account for some of the
situations that may arrise in mixed version state.
In particular, when upgrading, if the aggregator node
gets restarted with the new version, while the coordinator
still runs old binary, *and* the new aggregator encounters
a retryable error, that error would not be explicitly marked
as retryable, causing the old coordinator binary to treat
the error as a terminal error.

Other combination (new coordinator, old aggregator) is not
succeptible to this situation.

This PR partially reverts changes in the cockroachdb#90810 so previously
retryable errors continue to be explicitly marked as retryable.

There is no need to introduce version gates since the error
handling should be backward compatible, and with this PR, operate
correctly in the mixed version state.

Epic: None

Release note: none
@miretskiy
Copy link
Contributor Author

bors r+

@craig
Copy link
Contributor

craig bot commented Dec 7, 2022

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Dec 7, 2022

Build succeeded:

@craig craig bot merged commit 593bcb2 into cockroachdb:master Dec 7, 2022
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.

3 participants