diff options
author | jonmv <venstad@gmail.com> | 2024-06-04 08:38:43 +0200 |
---|---|---|
committer | jonmv <venstad@gmail.com> | 2024-06-04 08:38:43 +0200 |
commit | cb85399046eaa380a3b6496fa9d800fac574448b (patch) | |
tree | 24cbd13a5b3ce9c0c92cee6bfe121e41562498cc | |
parent | def19e2e37ed229212a649ba200d8c72ca75874f (diff) |
INFO log when config will no longer be updated because of expected restart
-rw-r--r-- | config/src/main/java/com/yahoo/config/subscription/ConfigSubscriber.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/config/src/main/java/com/yahoo/config/subscription/ConfigSubscriber.java b/config/src/main/java/com/yahoo/config/subscription/ConfigSubscriber.java index bbad22e52e8..66614a3da4e 100644 --- a/config/src/main/java/com/yahoo/config/subscription/ConfigSubscriber.java +++ b/config/src/main/java/com/yahoo/config/subscription/ConfigSubscriber.java @@ -293,7 +293,11 @@ public class ConfigSubscriber implements AutoCloseable { if (applyOnRestartOnly && ! isInitializing) { // disable any reconfig until restart synchronized (monitor) { - applyOnRestart = applyOnRestartOnly; + if ( ! applyOnRestart) { + log.log(Level.INFO, "Config generation " + generation + " requires restart; " + + "further config changes will not take effect until restart"); + applyOnRestart = true; + } } } |