aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/test/java/com/yahoo/vespa/streamingvisitors/MetricsSearcherTestCase.java
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@yahoo-inc.com>2017-03-01 13:04:16 +0100
committerBjørn Christian Seime <bjorncs@yahoo-inc.com>2017-03-02 13:06:37 +0100
commita0838ebd96d7f5a87643805f490568f15a663342 (patch)
tree7aaf590d6b0a858f24c3e128a3f74248a9673314 /container-search/src/test/java/com/yahoo/vespa/streamingvisitors/MetricsSearcherTestCase.java
parentcba366fe6ceaa445d46f015f18885b098c13c08e (diff)
Store streaming stats in query instead of query context
All properties in the query context are modelled as trace nodes and will be part of the query trace regardless of level. The streaming statistics should only be visible in trace for levels >=2.
Diffstat (limited to 'container-search/src/test/java/com/yahoo/vespa/streamingvisitors/MetricsSearcherTestCase.java')
-rw-r--r--container-search/src/test/java/com/yahoo/vespa/streamingvisitors/MetricsSearcherTestCase.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/container-search/src/test/java/com/yahoo/vespa/streamingvisitors/MetricsSearcherTestCase.java b/container-search/src/test/java/com/yahoo/vespa/streamingvisitors/MetricsSearcherTestCase.java
index 1fe62c2cd35..fab132c78b3 100644
--- a/container-search/src/test/java/com/yahoo/vespa/streamingvisitors/MetricsSearcherTestCase.java
+++ b/container-search/src/test/java/com/yahoo/vespa/streamingvisitors/MetricsSearcherTestCase.java
@@ -132,9 +132,9 @@ public class MetricsSearcherTestCase {
private void assignContextProperties(Query query, String loadType) {
if (loadType != null && loadType.equals(LOADTYPE1)) {
- query.getContext(true).setProperty(VdsStreamingSearcher.STREAMING_STATISTICS, visitorStats);
+ query.properties().set(VdsStreamingSearcher.STREAMING_STATISTICS, visitorStats);
} else {
- query.getContext(true).setProperty(VdsStreamingSearcher.STREAMING_STATISTICS, null);
+ query.properties().set(VdsStreamingSearcher.STREAMING_STATISTICS, null);
}
}
}