diff options
author | Jon Bratseth <bratseth@oath.com> | 2018-10-01 14:12:38 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@oath.com> | 2018-10-01 14:12:38 +0200 |
commit | da7926f6605eea33b397eede18692593fe1745b7 (patch) | |
tree | 99b485bb8ead07330fab9f2db8b24ed2a447945f | |
parent | 8d80010a385f40d4bb852e6b11810692a67e90ed (diff) |
Allow component construction to take a long time
Most components should be read only and eagerly set up to achieve
low latency. Therefore we should allow construction to take a long
time.
-rw-r--r-- | container-di/src/main/java/com/yahoo/container/di/Container.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/container-di/src/main/java/com/yahoo/container/di/Container.java b/container-di/src/main/java/com/yahoo/container/di/Container.java index fb427bcf8ae..9389749e610 100644 --- a/container-di/src/main/java/com/yahoo/container/di/Container.java +++ b/container-di/src/main/java/com/yahoo/container/di/Container.java @@ -117,7 +117,7 @@ public class Container { } private void invalidateGeneration(long generation, Throwable cause) { - Duration maxWaitToExit = Duration.ofSeconds(60); + Duration maxWaitToExit = Duration.ofDays(1); leastGeneration = Math.max(configurer.getComponentsGeneration(), configurer.getBootstrapGeneration()) + 1; if (!(cause instanceof InterruptedException) && !(cause instanceof ConfigInterruptedException)) { log.log(Level.WARNING, newGraphErrorMessage(generation, cause, maxWaitToExit), cause); |