zstan commented on code in PR #13874:
URL: https://github.com/apache/ignite/pull/13874#discussion_r4720856578
##########
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:
It not relates to the patch, just thinking - why we need a separate pool
here and not use :
GridTimeoutObject
GridTimeoutProcessor#addTimeoutObject
--
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]