exceptionfactory commented on code in PR #10692:
URL: https://github.com/apache/nifi/pull/10692#discussion_r2649236762
##########
nifi-extension-bundles/nifi-standard-services/nifi-dbcp-service-bundle/nifi-hikari-dbcp-service/src/main/java/org/apache/nifi/dbcp/HikariCPConnectionPool.java:
##########
@@ -213,6 +217,8 @@ public class HikariCPConnectionPool extends
AbstractControllerService implements
private volatile HikariDataSource dataSource;
private volatile KerberosUser kerberosUser;
+ // Hold an instance of the driver so we can properly de-register it.
+ private volatile Driver registeredDriver;
Review Comment:
That's a fair point, this approach does make it obvious, so keeping it this
way sounds good.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]