Add more logging to recent aggregations failures.

This commit is contained in:
Adrien Grand 2013-11-28 13:22:10 +01:00
parent 5ec0bf32d6
commit 1e85e4dd26
3 changed files with 6 additions and 0 deletions

View File

@ -22,6 +22,7 @@ package org.elasticsearch.search.aggregations.metrics;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.search.aggregations.bucket.histogram.Histogram;
import org.elasticsearch.search.aggregations.metrics.avg.Avg;
import org.elasticsearch.test.junit.annotations.TestLogging;
import org.junit.Test;
import static org.elasticsearch.index.query.QueryBuilders.matchAllQuery;
@ -253,6 +254,7 @@ public class AvgTests extends AbstractNumericTests {
}
@Test
@TestLogging("search:TRACE")
public void testScript_MultiValued_WithParams() throws Exception {
SearchResponse searchResponse = client().prepareSearch("idx")
.setQuery(matchAllQuery())

View File

@ -22,6 +22,7 @@ package org.elasticsearch.search.aggregations.metrics;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.search.aggregations.bucket.histogram.Histogram;
import org.elasticsearch.search.aggregations.metrics.stats.Stats;
import org.elasticsearch.test.junit.annotations.TestLogging;
import org.junit.Test;
import static org.elasticsearch.index.query.QueryBuilders.matchAllQuery;
@ -251,6 +252,7 @@ public class StatsTests extends AbstractNumericTests {
}
@Test
@TestLogging("search:TRACE")
public void testScript_ExplicitSingleValued_WithParams() throws Exception {
SearchResponse searchResponse = client().prepareSearch("idx")
.setQuery(matchAllQuery())

View File

@ -24,6 +24,7 @@ import org.elasticsearch.common.settings.ImmutableSettings;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.search.aggregations.metrics.valuecount.ValueCount;
import org.elasticsearch.test.ElasticsearchIntegrationTest;
import org.elasticsearch.test.junit.annotations.TestLogging;
import org.junit.Before;
import org.junit.Test;
@ -63,6 +64,7 @@ public class ValueCountTests extends ElasticsearchIntegrationTest {
}
@Test
@TestLogging("search:TRACE")
public void unmapped() throws Exception {
SearchResponse searchResponse = client().prepareSearch("idx_unmapped")