diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-01-26 11:35:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-26 11:35:25 +0100 |
commit | 606f7f83c02cd9818d9336611e4cf6e13ffea1b5 (patch) | |
tree | 1942f6f302a8b489ce1040e367976c28a6e0a2af /container-core | |
parent | 8b378f8d90ed92fc826c0113a2e00123839429f3 (diff) |
Revert "Balder/return timeout information up 4"
Diffstat (limited to 'container-core')
-rw-r--r-- | container-core/src/main/java/com/yahoo/container/handler/Coverage.java | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/container-core/src/main/java/com/yahoo/container/handler/Coverage.java b/container-core/src/main/java/com/yahoo/container/handler/Coverage.java index 6a12502b0eb..fd3c8ed4c49 100644 --- a/container-core/src/main/java/com/yahoo/container/handler/Coverage.java +++ b/container-core/src/main/java/com/yahoo/container/handler/Coverage.java @@ -12,8 +12,6 @@ public class Coverage { protected long docs; protected long active; - protected long soonActive; - protected int degradedReason; protected int nodes; protected int resultSets; protected int fullResultSets; @@ -25,10 +23,6 @@ public class Coverage { EXPLICITLY_FULL, EXPLICITLY_INCOMPLETE, DOCUMENT_COUNT; } - private final static int DEGRADED_BY_MATCH_PHASE = 1; - private final static int DEGRADED_BY_TIMEOUT = 2; - private final static int DEGRADED_BY_ADAPTIVE_TIMEOUT = 4; - /** * Build an invalid instance to initiate manually. */ @@ -52,8 +46,6 @@ public class Coverage { this.docs = docs; this.nodes = nodes; this.active = active; - this.soonActive = active; - this.degradedReason = 0; this.resultSets = resultSets; this.fullReason = fullReason; this.fullResultSets = getFull() ? resultSets : 0; @@ -66,8 +58,6 @@ public class Coverage { docs += other.getDocs(); nodes += other.getNodes(); active += other.getActive(); - soonActive += other.getSoonActive(); - degradedReason |= other.degradedReason; resultSets += other.getResultSets(); fullResultSets += other.getFullResultSets(); @@ -104,18 +94,6 @@ public class Coverage { public long getActive() { return active; } /** - * Total number of documents that will be searchable once redistribution has settled. - * - * @return Total number of documents that will soon be available. - */ - public long getSoonActive() { return soonActive; } - - public boolean isDegraded() { return degradedReason != 0; } - public boolean isDegradedByMatchPhase() { return (degradedReason & DEGRADED_BY_MATCH_PHASE) != 0; } - public boolean isDegradedByTimeout() { return (degradedReason & DEGRADED_BY_TIMEOUT) != 0; } - public boolean isDegradedByAdapativeTimeout() { return (degradedReason & DEGRADED_BY_ADAPTIVE_TIMEOUT) != 0; } - - /** * @return whether the search had full coverage or not */ public boolean getFull() { |