Skip to content

Commit a5ef2e6

Browse files
committed
Merge branch 'main' into parker/logsdb-random-test-querying
2 parents 7b8176c + 198148c commit a5ef2e6

File tree

17 files changed

+356
-182
lines changed

17 files changed

+356
-182
lines changed

.buildkite/pipelines/intake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ steps:
6565
timeout_in_minutes: 300
6666
matrix:
6767
setup:
68-
BWC_VERSION: ["8.17.10", "8.18.5", "9.0.5", "9.1.1", "9.2.0"]
68+
BWC_VERSION: ["8.17.10", "8.18.5", "8.19.0", "9.0.5", "9.1.1", "9.2.0"]
6969
agents:
7070
provider: gcp
7171
image: family/elasticsearch-ubuntu-2404

.buildkite/pipelines/periodic-packaging.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,22 @@ steps:
334334
env:
335335
BWC_VERSION: 8.18.5
336336

337+
- label: "{{matrix.image}} / 8.19.0 / packaging-tests-upgrade"
338+
command: ./.ci/scripts/packaging-test.sh -Dbwc.checkout.align=true destructiveDistroUpgradeTest.v8.19.0
339+
timeout_in_minutes: 300
340+
matrix:
341+
setup:
342+
image:
343+
- rocky-8
344+
- ubuntu-2404
345+
agents:
346+
provider: gcp
347+
image: family/elasticsearch-{{matrix.image}}
348+
machineType: custom-16-32768
349+
buildDirectory: /dev/shm/bk
350+
env:
351+
BWC_VERSION: 8.19.0
352+
337353
- label: "{{matrix.image}} / 9.0.5 / packaging-tests-upgrade"
338354
command: ./.ci/scripts/packaging-test.sh -Dbwc.checkout.align=true destructiveDistroUpgradeTest.v9.0.5
339355
timeout_in_minutes: 300

.buildkite/pipelines/periodic.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,25 @@ steps:
363363
- signal_reason: agent_stop
364364
limit: 3
365365

366+
- label: 8.19.0 / bwc
367+
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v8.19.0#bwcTest
368+
timeout_in_minutes: 300
369+
agents:
370+
provider: gcp
371+
image: family/elasticsearch-ubuntu-2404
372+
machineType: n1-standard-32
373+
buildDirectory: /dev/shm/bk
374+
preemptible: true
375+
env:
376+
BWC_VERSION: 8.19.0
377+
retry:
378+
automatic:
379+
- exit_status: "-1"
380+
limit: 3
381+
signal_reason: none
382+
- signal_reason: agent_stop
383+
limit: 3
384+
366385
- label: 9.0.5 / bwc
367386
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v9.0.5#bwcTest
368387
timeout_in_minutes: 300
@@ -487,7 +506,7 @@ steps:
487506
setup:
488507
ES_RUNTIME_JAVA:
489508
- openjdk21
490-
BWC_VERSION: ["8.17.10", "8.18.5", "9.0.5", "9.1.1", "9.2.0"]
509+
BWC_VERSION: ["8.17.10", "8.18.5", "8.19.0", "9.0.5", "9.1.1", "9.2.0"]
491510
agents:
492511
provider: gcp
493512
image: family/elasticsearch-ubuntu-2404
@@ -531,7 +550,7 @@ steps:
531550
ES_RUNTIME_JAVA:
532551
- openjdk21
533552
- openjdk23
534-
BWC_VERSION: ["8.17.10", "8.18.5", "9.0.5", "9.1.1", "9.2.0"]
553+
BWC_VERSION: ["8.17.10", "8.18.5", "8.19.0", "9.0.5", "9.1.1", "9.2.0"]
535554
agents:
536555
provider: gcp
537556
image: family/elasticsearch-ubuntu-2404

.ci/bwcVersions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ BWC_VERSION:
1818
- "8.16.6"
1919
- "8.17.10"
2020
- "8.18.5"
21+
- "8.19.0"
2122
- "9.0.5"
2223
- "9.1.1"
2324
- "9.2.0"

.ci/snapshotBwcVersions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
BWC_VERSION:
22
- "8.17.10"
33
- "8.18.5"
4+
- "8.19.0"
45
- "9.0.5"
56
- "9.1.1"
67
- "9.2.0"

muted-tests.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,60 @@ tests:
545545
- class: org.elasticsearch.index.mapper.vectors.DenseVectorFieldIndexTypeUpdateIT
546546
method: testDenseVectorMappingUpdate {initialType=int4_flat updateType=int8_hnsw}
547547
issue: https://github.com/elastic/elasticsearch/issues/132117
548+
- class: org.elasticsearch.index.mapper.vectors.DenseVectorFieldIndexTypeUpdateIT
549+
method: testDenseVectorMappingUpdate {initialType=flat updateType=hnsw}
550+
issue: https://github.com/elastic/elasticsearch/issues/132119
551+
- class: org.elasticsearch.index.mapper.vectors.DenseVectorFieldIndexTypeUpdateIT
552+
method: testDenseVectorMappingUpdate {initialType=flat updateType=bbq_flat}
553+
issue: https://github.com/elastic/elasticsearch/issues/132120
554+
- class: org.elasticsearch.index.mapper.vectors.DenseVectorFieldIndexTypeUpdateIT
555+
method: testDenseVectorMappingUpdate {initialType=int8_flat updateType=bbq_disk}
556+
issue: https://github.com/elastic/elasticsearch/issues/132122
557+
- class: org.elasticsearch.index.mapper.vectors.DenseVectorFieldIndexTypeUpdateIT
558+
method: testDenseVectorMappingUpdate {initialType=int8_flat updateType=int4_hnsw}
559+
issue: https://github.com/elastic/elasticsearch/issues/132123
560+
- class: org.elasticsearch.index.mapper.vectors.DenseVectorFieldIndexTypeUpdateIT
561+
method: testDenseVectorMappingUpdate {initialType=int8_flat updateType=hnsw}
562+
issue: https://github.com/elastic/elasticsearch/issues/132124
563+
- class: org.elasticsearch.index.mapper.vectors.DenseVectorFieldIndexTypeUpdateIT
564+
method: testDenseVectorMappingUpdate {initialType=int8_flat updateType=int4_flat}
565+
issue: https://github.com/elastic/elasticsearch/issues/132125
566+
- class: org.elasticsearch.index.mapper.vectors.DenseVectorFieldIndexTypeUpdateIT
567+
method: testDenseVectorMappingUpdate {initialType=flat updateType=int8_hnsw}
568+
issue: https://github.com/elastic/elasticsearch/issues/132126
569+
- class: org.elasticsearch.index.mapper.vectors.DenseVectorFieldIndexTypeUpdateIT
570+
method: testDenseVectorMappingUpdate {initialType=bbq_disk updateType=bbq_disk}
571+
issue: https://github.com/elastic/elasticsearch/issues/132127
572+
- class: org.elasticsearch.index.mapper.vectors.DenseVectorFieldIndexTypeUpdateIT
573+
method: testDenseVectorMappingUpdate {initialType=flat updateType=int8_flat}
574+
issue: https://github.com/elastic/elasticsearch/issues/132129
575+
- class: org.elasticsearch.index.mapper.vectors.DenseVectorFieldIndexTypeUpdateIT
576+
method: "testDenseVectorMappingUpdate {initialType=flat updateType=bbq_disk #2}"
577+
issue: https://github.com/elastic/elasticsearch/issues/132130
578+
- class: org.elasticsearch.index.mapper.vectors.DenseVectorFieldIndexTypeUpdateIT
579+
method: testDenseVectorMappingUpdate {initialType=int4_flat updateType=bbq_flat}
580+
issue: https://github.com/elastic/elasticsearch/issues/132132
581+
- class: org.elasticsearch.index.mapper.vectors.DenseVectorFieldIndexTypeUpdateIT
582+
method: testDenseVectorMappingUpdate {initialType=int8_hnsw updateType=int4_hnsw}
583+
issue: https://github.com/elastic/elasticsearch/issues/132133
584+
- class: org.elasticsearch.index.mapper.vectors.DenseVectorFieldIndexTypeUpdateIT
585+
method: testDenseVectorMappingUpdate {initialType=bbq_flat updateType=bbq_disk}
586+
issue: https://github.com/elastic/elasticsearch/issues/132134
587+
- class: org.elasticsearch.upgrades.RunningSnapshotIT
588+
method: testRunningSnapshotCompleteAfterUpgrade {upgradedNodes=1}
589+
issue: https://github.com/elastic/elasticsearch/issues/132135
590+
- class: org.elasticsearch.upgrades.RunningSnapshotIT
591+
method: testRunningSnapshotCompleteAfterUpgrade {upgradedNodes=2}
592+
issue: https://github.com/elastic/elasticsearch/issues/132136
593+
- class: org.elasticsearch.upgrades.RunningSnapshotIT
594+
method: testRunningSnapshotCompleteAfterUpgrade {upgradedNodes=3}
595+
issue: https://github.com/elastic/elasticsearch/issues/132137
596+
- class: org.elasticsearch.index.mapper.vectors.DenseVectorFieldIndexTypeUpdateIT
597+
method: testDenseVectorMappingUpdate {initialType=int4_flat updateType=int4_hnsw}
598+
issue: https://github.com/elastic/elasticsearch/issues/132140
599+
- class: org.elasticsearch.index.mapper.vectors.DenseVectorFieldIndexTypeUpdateIT
600+
method: testDenseVectorMappingUpdate {initialType=int8_flat updateType=bbq_hnsw}
601+
issue: https://github.com/elastic/elasticsearch/issues/132141
548602

549603
# Examples:
550604
#

server/src/main/java/org/elasticsearch/TransportVersions.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,6 @@ static TransportVersion def(int id) {
333333
public static final TransportVersion ESQL_SPLIT_ON_BIG_VALUES_9_1 = def(9_112_0_01);
334334
public static final TransportVersion ESQL_FIXED_INDEX_LIKE_9_1 = def(9_112_0_02);
335335
public static final TransportVersion ESQL_SAMPLE_OPERATOR_STATUS_9_1 = def(9_112_0_03);
336-
// Below is the first version in 9.2 and NOT in 9.1.
337336
public static final TransportVersion INITIAL_ELASTICSEARCH_9_1_1 = def(9_112_0_04);
338337
public static final TransportVersion PROJECT_STATE_REGISTRY_RECORDS_DELETIONS = def(9_113_0_00);
339338
public static final TransportVersion ESQL_SERIALIZE_TIMESERIES_FIELD_TYPE = def(9_114_0_00);

server/src/main/java/org/elasticsearch/Version.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ public class Version implements VersionId<Version>, ToXContentFragment {
212212
public static final Version V_8_18_3 = new Version(8_18_03_99);
213213
public static final Version V_8_18_4 = new Version(8_18_04_99);
214214
public static final Version V_8_18_5 = new Version(8_18_05_99);
215+
public static final Version V_8_19_0 = new Version(8_19_00_99);
215216
public static final Version V_9_0_0 = new Version(9_00_00_99);
216217
public static final Version V_9_0_1 = new Version(9_00_01_99);
217218
public static final Version V_9_0_2 = new Version(9_00_02_99);

x-pack/plugin/logsdb/src/main/java/org/elasticsearch/xpack/logsdb/patternedtext/PatternedTextFieldMapper.java

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@
3333
import java.util.List;
3434
import java.util.Map;
3535

36-
import static org.elasticsearch.index.IndexSettings.USE_DOC_VALUES_SKIPPER;
37-
3836
/**
3937
* A {@link FieldMapper} that assigns every document the same value.
4038
*/
@@ -62,25 +60,12 @@ public static class Builder extends FieldMapper.Builder {
6260
private final IndexSettings indexSettings;
6361
private final Parameter<Map<String, String>> meta = Parameter.metaParam();
6462
private final TextParams.Analyzers analyzers;
65-
private final boolean enableDocValuesSkipper;
6663

6764
public Builder(String name, MappingParserContext context) {
68-
this(
69-
name,
70-
context.indexVersionCreated(),
71-
context.getIndexSettings(),
72-
context.getIndexAnalyzers(),
73-
USE_DOC_VALUES_SKIPPER.get(context.getSettings())
74-
);
65+
this(name, context.indexVersionCreated(), context.getIndexSettings(), context.getIndexAnalyzers());
7566
}
7667

77-
public Builder(
78-
String name,
79-
IndexVersion indexCreatedVersion,
80-
IndexSettings indexSettings,
81-
IndexAnalyzers indexAnalyzers,
82-
boolean enableDocValuesSkipper
83-
) {
68+
public Builder(String name, IndexVersion indexCreatedVersion, IndexSettings indexSettings, IndexAnalyzers indexAnalyzers) {
8469
super(name);
8570
this.indexCreatedVersion = indexCreatedVersion;
8671
this.indexSettings = indexSettings;
@@ -90,7 +75,6 @@ public Builder(
9075
m -> ((PatternedTextFieldMapper) m).positionIncrementGap,
9176
indexCreatedVersion
9277
);
93-
this.enableDocValuesSkipper = enableDocValuesSkipper;
9478
}
9579

9680
@Override
@@ -120,8 +104,8 @@ public PatternedTextFieldMapper build(MapperBuilderContext context) {
120104
patternedTextFieldType.templateIdFieldName(),
121105
indexSettings.getMode(),
122106
indexCreatedVersion,
123-
enableDocValuesSkipper
124-
).build(context);
107+
true
108+
).indexed(false).build(context);
125109
return new PatternedTextFieldMapper(leafName(), patternedTextFieldType, builderParams, this, templateIdMapper);
126110
}
127111
}
@@ -132,7 +116,6 @@ public PatternedTextFieldMapper build(MapperBuilderContext context) {
132116
private final IndexAnalyzers indexAnalyzers;
133117
private final IndexSettings indexSettings;
134118
private final NamedAnalyzer indexAnalyzer;
135-
private final boolean enableDocValuesSkipper;
136119
private final int positionIncrementGap;
137120
private final FieldType fieldType;
138121
private final KeywordFieldMapper templateIdMapper;
@@ -152,7 +135,6 @@ private PatternedTextFieldMapper(
152135
this.indexAnalyzers = builder.analyzers.indexAnalyzers;
153136
this.indexAnalyzer = builder.analyzers.getIndexAnalyzer();
154137
this.indexSettings = builder.indexSettings;
155-
this.enableDocValuesSkipper = builder.enableDocValuesSkipper;
156138
this.positionIncrementGap = builder.analyzers.positionIncrementGap.getValue();
157139
this.templateIdMapper = templateIdMapper;
158140
}
@@ -164,7 +146,7 @@ public Map<String, NamedAnalyzer> indexAnalyzers() {
164146

165147
@Override
166148
public FieldMapper.Builder getMergeBuilder() {
167-
return new Builder(leafName(), indexCreatedVersion, indexSettings, indexAnalyzers, enableDocValuesSkipper).init(this);
149+
return new Builder(leafName(), indexCreatedVersion, indexSettings, indexAnalyzers).init(this);
168150
}
169151

170152
@Override

x-pack/plugin/logsdb/src/test/java/org/elasticsearch/xpack/logsdb/patternedtext/PatternedTextFieldMapperTests.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import org.elasticsearch.common.Strings;
2525
import org.elasticsearch.common.settings.Settings;
2626
import org.elasticsearch.core.Tuple;
27-
import org.elasticsearch.index.IndexSettings;
2827
import org.elasticsearch.index.mapper.DateFieldMapper;
2928
import org.elasticsearch.index.mapper.DocumentMapper;
3029
import org.elasticsearch.index.mapper.KeywordFieldMapper;
@@ -131,10 +130,7 @@ protected void minimalStoreMapping(XContentBuilder b) throws IOException {
131130
}
132131

133132
public void testDefaults() throws IOException {
134-
boolean enabledDocValuesSkipper = randomBoolean();
135-
var indexSettings = getIndexSettingsBuilder().put(IndexSettings.USE_DOC_VALUES_SKIPPER.getKey(), enabledDocValuesSkipper).build();
136-
137-
DocumentMapper mapper = createMapperService(indexSettings, fieldMapping(this::minimalMapping)).documentMapper();
133+
DocumentMapper mapper = createMapperService(fieldMapping(this::minimalMapping)).documentMapper();
138134
assertEquals(Strings.toString(fieldMapping(this::minimalMapping)), mapper.mappingSource().toString());
139135

140136
ParsedDocument doc = mapper.parse(source(b -> b.field("field", "1234")));
@@ -162,7 +158,7 @@ public void testDefaults() throws IOException {
162158
assertThat(fieldType.omitNorms(), equalTo(true));
163159
assertFalse(fieldType.tokenized());
164160
assertFalse(fieldType.stored());
165-
assertThat(fieldType.indexOptions(), equalTo(enabledDocValuesSkipper ? IndexOptions.NONE : IndexOptions.DOCS));
161+
assertThat(fieldType.indexOptions(), equalTo(IndexOptions.NONE));
166162
assertThat(fieldType.storeTermVectors(), equalTo(false));
167163
assertThat(fieldType.storeTermVectorOffsets(), equalTo(false));
168164
assertThat(fieldType.storeTermVectorPositions(), equalTo(false));

0 commit comments

Comments
 (0)