diff options
author | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-10-25 10:06:20 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-10-25 10:06:20 +0200 |
commit | 2ee87c18e47fd10392440f64aec12a00f52b8376 (patch) | |
tree | d2cf98f36f2a583f75b6641bceb41d9e7065c604 /container-search/src/main/java/com/yahoo/prelude/statistics | |
parent | d0793fd0709c6e4a726ca9c94f5048537c1847e3 (diff) |
Use a dedicated thread for VIP status
Also, various nonfunctiuonal changes.
Diffstat (limited to 'container-search/src/main/java/com/yahoo/prelude/statistics')
-rw-r--r-- | container-search/src/main/java/com/yahoo/prelude/statistics/StatisticsSearcher.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/container-search/src/main/java/com/yahoo/prelude/statistics/StatisticsSearcher.java b/container-search/src/main/java/com/yahoo/prelude/statistics/StatisticsSearcher.java index d43fed4845f..1327e69f82f 100644 --- a/container-search/src/main/java/com/yahoo/prelude/statistics/StatisticsSearcher.java +++ b/container-search/src/main/java/com/yahoo/prelude/statistics/StatisticsSearcher.java @@ -179,9 +179,8 @@ public class StatisticsSearcher extends Searcher { if (latency >= 0) { addLatency(latency, metricContext); } else { - getLogger().log( - LogLevel.WARNING, - "Apparently negative latency measure, start: " + start + getLogger().log(LogLevel.WARNING, + "Apparently negative latency measure, start: " + start + ", end: " + end + ", for query: " + query.toString()); } if (result.hits().getError() != null) { @@ -238,7 +237,7 @@ public class StatisticsSearcher extends Searcher { if (result.hits().getErrorHit().hasOnlyErrorCode(Error.NULL_QUERY.code)) { nullQueries.increment(); return; - } else if (result.hits().getErrorHit().hasOnlyErrorCode(3)) { + } else if (result.hits().getErrorHit().hasOnlyErrorCode(Error.ILLEGAL_QUERY.code)) { illegalQueries.increment(); return; } |