diff options
author | Jon Bratseth <bratseth@verizonmedia.com> | 2019-02-25 14:13:42 +0100 |
---|---|---|
committer | Jon Bratseth <bratseth@verizonmedia.com> | 2019-02-25 14:13:42 +0100 |
commit | 655f886a867b48038001bb3df80e4e5589cb3255 (patch) | |
tree | 651259e6dffb73ca9c30586dce4fcbdf7cd2a5d5 /container-core | |
parent | 9660bf36f0381e8611213e0158fe61c67bc36fa3 (diff) |
Remove unnecessary code
Diffstat (limited to 'container-core')
-rw-r--r-- | container-core/src/main/java/com/yahoo/container/handler/VipStatus.java | 3 | ||||
-rw-r--r-- | container-core/src/main/java/com/yahoo/container/handler/VipStatusHandler.java | 16 |
2 files changed, 2 insertions, 17 deletions
diff --git a/container-core/src/main/java/com/yahoo/container/handler/VipStatus.java b/container-core/src/main/java/com/yahoo/container/handler/VipStatus.java index a0b959a1c26..46f1f8a9245 100644 --- a/container-core/src/main/java/com/yahoo/container/handler/VipStatus.java +++ b/container-core/src/main/java/com/yahoo/container/handler/VipStatus.java @@ -7,7 +7,8 @@ import com.yahoo.container.core.VipStatusConfig; import com.yahoo.container.jdisc.state.StateMonitor; /** - * API for programmatically removing the container from VIP rotation. + * A component which keeps track of whether or not this container instance should receive traffic + * and respond that it is in good health. * * This is multithread safe. * diff --git a/container-core/src/main/java/com/yahoo/container/handler/VipStatusHandler.java b/container-core/src/main/java/com/yahoo/container/handler/VipStatusHandler.java index be62f8177c2..a37255436ca 100644 --- a/container-core/src/main/java/com/yahoo/container/handler/VipStatusHandler.java +++ b/container-core/src/main/java/com/yahoo/container/handler/VipStatusHandler.java @@ -185,23 +185,7 @@ public final class VipStatusHandler extends ThreadedHttpRequestHandler { public HttpResponse handle(HttpRequest request) { if (metric != null) metric.add(NUM_REQUESTS_METRIC, 1, null); - if (vipStatus != null) - updateAndLogRotationState(); return new StatusResponse(); } - private void updateAndLogRotationState() { - boolean currentlyInRotation = vipStatus.isInRotation(); - boolean previousRotationAnswer = previouslyInRotation; - previouslyInRotation = currentlyInRotation; - - if (previousRotationAnswer != currentlyInRotation) { - if (currentlyInRotation) { - log.log(LogLevel.INFO, "Putting container back into rotation by serving status.html again."); - } else { - log.log(LogLevel.WARNING, "Removing container from rotation by no longer serving status.html."); - } - } - } - } |