confluentinc / kafka-connect-jdbc

Kafka Connect connector for JDBC-compatible databases
Other
19 stars 955 forks source link

CCDB-5077: Fix closin CacheConnectionProvider to close on lifecycle events #1284

Closed mukkachaitanya closed 1 year ago

mukkachaitanya commented 1 year ago

Problem

Fixes #1205. Follows up on #1206 to fix the issue on non life-cycle events While CacheConenctionProvider is trying to get a connection, it is impossible to stop.

Solution

Add a flag to not go on with connection attempt when a close request has been issued.

Does this solution apply anywhere else?
If yes, where?

Test Strategy

Testing done:

Release Plan

merge to 5.0.x and further