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

Revert "Allow close() on CachedConnectionProvider while attempting to connect…" #1272

Merged
merged 1 commit into from
Nov 30, 2022

Conversation

mukkachaitanya
Copy link
Member

What?

Reverts #1206

Why?

We missed a big part of the fact that the internal retries of the ConnectionProvider also call on close.

For example, JdbcDbWriter#closeQuitely is called during internal retries JdbcSinkTask#put. This can cause NPEs as we return a null connection back when a new connection is requested since we have set isRunning to false.

This regression wasn't caught by 5.0.x tests. It failed further down on the pint merge on newer branches.

@mukkachaitanya mukkachaitanya requested review from ypmahajan and a team November 30, 2022 13:24
@mukkachaitanya mukkachaitanya merged commit ceb4ed0 into 5.0.x Nov 30, 2022
@mukkachaitanya mukkachaitanya deleted the revert-1206-improve-connection-provider-close branch November 30, 2022 13:59
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.

None yet

2 participants