diff options
author | gjoranv <gv@verizonmedia.com> | 2021-10-04 16:00:17 +0200 |
---|---|---|
committer | gjoranv <gv@verizonmedia.com> | 2021-10-08 14:24:15 +0200 |
commit | 2942139738c7756503ae97d39394e1443abf8d3f (patch) | |
tree | f5f21f0d9baabdcb731bf51567e9d3b56fdb3cda /container-core | |
parent | 873bdf98ee2555c51c77bdda16b1f25fc829d3e2 (diff) |
Improve comment
Diffstat (limited to 'container-core')
-rw-r--r-- | container-core/src/main/java/com/yahoo/container/di/ConfigRetriever.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/container-core/src/main/java/com/yahoo/container/di/ConfigRetriever.java b/container-core/src/main/java/com/yahoo/container/di/ConfigRetriever.java index 1e7f3e06049..73b7126a11f 100644 --- a/container-core/src/main/java/com/yahoo/container/di/ConfigRetriever.java +++ b/container-core/src/main/java/com/yahoo/container/di/ConfigRetriever.java @@ -77,7 +77,8 @@ public final class ConfigRetriever { long newestComponentGeneration = componentSubscriber.waitNextGeneration(isInitializing); log.log(FINE, () -> "getConfigsOptional: new component generation: " + newestComponentGeneration); - // leastGeneration is only used to ensure newer generation when the previous generation was invalidated due to an exception + // leastGeneration is only used to ensure newer generation (than the latest bootstrap or component gen) + // when the previous generation was invalidated due to an exception upon creating the component graph. if (newestComponentGeneration < leastGeneration) { return Optional.empty(); } else if (bootstrapSubscriber.generation() < newestComponentGeneration) { |