|
43 | 43 | import org.elasticsearch.index.shard.ShardLongFieldRange;
|
44 | 44 | import org.elasticsearch.indices.DateFieldRangeInfo;
|
45 | 45 | import org.elasticsearch.search.CanMatchShardResponse;
|
| 46 | +import org.elasticsearch.search.SearchService; |
46 | 47 | import org.elasticsearch.search.aggregations.AggregationBuilder;
|
47 | 48 | import org.elasticsearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder;
|
48 | 49 | import org.elasticsearch.search.builder.SearchSourceBuilder;
|
@@ -101,7 +102,7 @@ public void tearDown() throws Exception {
|
101 | 102 | }
|
102 | 103 |
|
103 | 104 | public void testFilterShards() throws InterruptedException {
|
104 |
| - |
| 105 | + assumeFalse("no actual can_match if batched execution is active", SearchService.BATCHED_QUERY_PHASE_FEATURE_FLAG); |
105 | 106 | final TransportSearchAction.SearchTimeProvider timeProvider = new TransportSearchAction.SearchTimeProvider(
|
106 | 107 | 0,
|
107 | 108 | System.nanoTime(),
|
@@ -188,6 +189,8 @@ public void sendCanMatch(
|
188 | 189 | }
|
189 | 190 |
|
190 | 191 | public void testFilterWithFailure() throws InterruptedException {
|
| 192 | + assumeFalse("no actual can_match if batched execution is active", SearchService.BATCHED_QUERY_PHASE_FEATURE_FLAG); |
| 193 | + |
191 | 194 | final TransportSearchAction.SearchTimeProvider timeProvider = new TransportSearchAction.SearchTimeProvider(
|
192 | 195 | 0,
|
193 | 196 | System.nanoTime(),
|
@@ -279,6 +282,8 @@ public void sendCanMatch(
|
279 | 282 | }
|
280 | 283 |
|
281 | 284 | public void testSortShards() throws InterruptedException {
|
| 285 | + assumeFalse("no actual can_match if batched execution is active", SearchService.BATCHED_QUERY_PHASE_FEATURE_FLAG); |
| 286 | + |
282 | 287 | final TransportSearchAction.SearchTimeProvider timeProvider = new TransportSearchAction.SearchTimeProvider(
|
283 | 288 | 0,
|
284 | 289 | System.nanoTime(),
|
@@ -640,6 +645,7 @@ public void doCanMatchFilteringOnCoordinatorThatCanBeSkipped(String timestampFie
|
640 | 645 | }
|
641 | 646 |
|
642 | 647 | public void testCoordinatorCanMatchFilteringThatCanBeSkippedUsingBothTimestamps() throws Exception {
|
| 648 | + assumeFalse("no actual can_match if batched execution is active", SearchService.BATCHED_QUERY_PHASE_FEATURE_FLAG); |
643 | 649 | Index dataStreamIndex1 = new Index(".ds-twoTimestamps0001", UUIDs.base64UUID());
|
644 | 650 | Index dataStreamIndex2 = new Index(".ds-twoTimestamps0002", UUIDs.base64UUID());
|
645 | 651 | DataStream dataStream = DataStreamTestHelper.newInstance("mydata", List.of(dataStreamIndex1, dataStreamIndex2));
|
@@ -724,6 +730,8 @@ public void testCoordinatorCanMatchFilteringThatCanBeSkippedUsingBothTimestamps(
|
724 | 730 | }
|
725 | 731 |
|
726 | 732 | public void testCanMatchFilteringOnCoordinatorParsingFails() throws Exception {
|
| 733 | + assumeFalse("no actual can_match if batched execution is active", SearchService.BATCHED_QUERY_PHASE_FEATURE_FLAG); |
| 734 | + |
727 | 735 | Index dataStreamIndex1 = new Index(".ds-mydata0001", UUIDs.base64UUID());
|
728 | 736 | Index dataStreamIndex2 = new Index(".ds-mydata0002", UUIDs.base64UUID());
|
729 | 737 | DataStream dataStream = DataStreamTestHelper.newInstance("mydata", List.of(dataStreamIndex1, dataStreamIndex2));
|
@@ -763,6 +771,8 @@ public void testCanMatchFilteringOnCoordinatorParsingFails() throws Exception {
|
763 | 771 | }
|
764 | 772 |
|
765 | 773 | public void testCanMatchFilteringOnCoordinatorThatCanNotBeSkipped() throws Exception {
|
| 774 | + assumeFalse("no actual can_match if batched execution is active", SearchService.BATCHED_QUERY_PHASE_FEATURE_FLAG); |
| 775 | + |
766 | 776 | // Generate indices
|
767 | 777 | Index dataStreamIndex1 = new Index(".ds-mydata0001", UUIDs.base64UUID());
|
768 | 778 | Index dataStreamIndex2 = new Index(".ds-mydata0002", UUIDs.base64UUID());
|
@@ -817,6 +827,7 @@ public void testCanMatchFilteringOnCoordinatorThatCanNotBeSkipped() throws Excep
|
817 | 827 | }
|
818 | 828 |
|
819 | 829 | public void testCanMatchFilteringOnCoordinatorWithTimestampAndEventIngestedThatCanNotBeSkipped() throws Exception {
|
| 830 | + assumeFalse("no actual can_match if batched execution is active", SearchService.BATCHED_QUERY_PHASE_FEATURE_FLAG); |
820 | 831 | // Generate indices
|
821 | 832 | Index dataStreamIndex1 = new Index(".ds-mydata0001", UUIDs.base64UUID());
|
822 | 833 | Index dataStreamIndex2 = new Index(".ds-mydata0002", UUIDs.base64UUID());
|
@@ -884,6 +895,8 @@ public void testCanMatchFilteringOnCoordinatorWithTimestampAndEventIngestedThatC
|
884 | 895 | }
|
885 | 896 |
|
886 | 897 | public void testCanMatchFilteringOnCoordinator_withSignificantTermsAggregation_withDefaultBackgroundFilter() throws Exception {
|
| 898 | + assumeFalse("no actual can_match if batched execution is active", SearchService.BATCHED_QUERY_PHASE_FEATURE_FLAG); |
| 899 | + |
887 | 900 | Index index1 = new Index("index1", UUIDs.base64UUID());
|
888 | 901 | Index index2 = new Index("index2", UUIDs.base64UUID());
|
889 | 902 | Index index3 = new Index("index3", UUIDs.base64UUID());
|
@@ -951,6 +964,8 @@ public void testCanMatchFilteringOnCoordinator_withSignificantTermsAggregation_w
|
951 | 964 | }
|
952 | 965 |
|
953 | 966 | public void testCanMatchFilteringOnCoordinator_withSignificantTermsAggregation_withSuggest() throws Exception {
|
| 967 | + assumeFalse("no actual can_match if batched execution is active", SearchService.BATCHED_QUERY_PHASE_FEATURE_FLAG); |
| 968 | + |
954 | 969 | Index index1 = new Index("index1", UUIDs.base64UUID());
|
955 | 970 | Index index2 = new Index("index2", UUIDs.base64UUID());
|
956 | 971 | Index index3 = new Index("index3", UUIDs.base64UUID());
|
@@ -981,6 +996,8 @@ public void testCanMatchFilteringOnCoordinator_withSignificantTermsAggregation_w
|
981 | 996 | }
|
982 | 997 |
|
983 | 998 | public void testCanMatchFilteringOnCoordinator_withSignificantTermsAggregation_withSuggest_withTwoTimestamps() throws Exception {
|
| 999 | + assumeFalse("no actual can_match if batched execution is active", SearchService.BATCHED_QUERY_PHASE_FEATURE_FLAG); |
| 1000 | + |
984 | 1001 | Index index1 = new Index("index1", UUIDs.base64UUID());
|
985 | 1002 | Index index2 = new Index("index2", UUIDs.base64UUID());
|
986 | 1003 | Index index3 = new Index("index3", UUIDs.base64UUID());
|
@@ -1018,6 +1035,7 @@ public void testCanMatchFilteringOnCoordinator_withSignificantTermsAggregation_w
|
1018 | 1035 | }
|
1019 | 1036 |
|
1020 | 1037 | public void testCanMatchFilteringOnCoordinatorThatCanBeSkippedTsdb() throws Exception {
|
| 1038 | + assumeFalse("no actual can_match if batched execution is active", SearchService.BATCHED_QUERY_PHASE_FEATURE_FLAG); |
1021 | 1039 | DataStream dataStream1;
|
1022 | 1040 | {
|
1023 | 1041 | Index index1 = new Index(".ds-ds10001", UUIDs.base64UUID());
|
|
0 commit comments