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


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/ssl/SslFactoryRegistry.java:
##########
@@ -91,35 +96,25 @@ public List<Entry<Factory<SSLContext>, String>> factories() 
{
     @Override public void onKernalStart(boolean active) {
         MetricRegistryImpl metrics = ctx.metric().registry("ssl");
 
-        metrics.register("ConsecutiveHotReloadFailures", 
this::consecutiveHotReloadFailures,
-            "Number of consecutive automatic hot reload failures.");
+        metrics.register("ConsecutiveAutoReloadFailures", 
this::consecutiveAutoReloadFailures,
+            "Number of consecutive automatic reload failures.");
         metrics.register("ManualReloadAttempts", manualReloadAttempts::get, 
"Number of manual reload attempts.");
-        metrics.register("AutomaticHotReloadAttempts", 
automaticHotReloadAttempts::get,
-            "Number of automatic hot reload attempts.");
-
-        boolean hotReload = false;
+        metrics.register("AutoReloadAttempts", autoReloadAttempts::get,
+            "Number of automatic reload attempts.");
 
         for (RegisteredFactory registered : factories) {
-            AbstractSslContextFactory sslFactory = 
registered.hotReloadFactory();
+            if (registered.reloadable == null || 
!registered.reloadable.isAutoReloadEnabled())
+                continue;
 
-            if (sslFactory != null) {
-                registered.logHotReloadTime(sslFactory.getHotReloadTime());
+            if (executor == null)
+                executor = newSingleThreadScheduledExecutor("ssl-auto-reload", 
ctx.igniteInstanceName());

Review Comment:
   TLS reload can block on the certificate source, for example a remote store, 
an HSM or a custom loadKeyStore. GridTimeoutProcessor calls onTimeout() inline 
in its single grid-timeout-worker, so a slow load would delay all other 
timeouts of the node and be reported as a blocked system-critical thread. A 
separate thread keeps the delay inside TLS reload, and node stop can interrupt 
a hung load.



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