anton-vinogradov commented on code in PR #13874:
URL: https://github.com/apache/ignite/pull/13874#discussion_r4740112213


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/ssl/SslFactoryRegistry.java:
##########
@@ -128,146 +123,202 @@ private long consecutiveHotReloadFailures() {
         return sum;
     }
 
-    /** Runs the hourly check of the factories with hot reload enabled. */
-    private void checkFactories() {
-        if (log.isDebugEnabled())
-            log.debug("TLS hot reload check started");
-
-        for (RegisteredFactory registered : factories) {
-            if (registered.hotReloadFactory() != null)
-                registered.check();
-        }
-    }
-
     /** {@inheritDoc} */
     @Override public void onKernalStop(boolean cancel) {
         if (executor != null)

Review Comment:
   `U.closeQuiet()` needs an `AutoCloseable`, and executors implement it only 
since JDK 19, so this does not compile on JDK 17. Besides, `close()` waits for 
running tasks, as `U.shutdownNow(...)` does, while `shutdownNow()` interrupts 
the load and lets the node stop even if the certificate source ignores the 
interrupt. `testStopInterruptsActiveAttemptWithoutWaitingForIt` covers that.



-- 
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]

Reply via email to