Skip to content

Commit bc07059

Browse files
committed
Merge branch 'main' into carlosdelest/fix-synonyms-ci-tests-timeout
2 parents 71dced7 + f32051f commit bc07059

File tree

1,010 files changed

+19113
-5730
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,010 files changed

+19113
-5730
lines changed

.buildkite/hooks/pre-command

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ export COMPOSE_HTTP_TIMEOUT
1616
JOB_BRANCH="$BUILDKITE_BRANCH"
1717
export JOB_BRANCH
1818

19-
GRADLEW="./gradlew --parallel --scan --build-cache --no-watch-fs -Dorg.elasticsearch.build.cache.url=https://gradle-enterprise.elastic.co/cache/"
19+
GRADLEW="./gradlew --console=plain --parallel --scan --build-cache --no-watch-fs -Dorg.elasticsearch.build.cache.url=https://gradle-enterprise.elastic.co/cache/"
2020
export GRADLEW
2121

22-
GRADLEW_BAT="./gradlew.bat --parallel --scan --build-cache --no-watch-fs -Dorg.elasticsearch.build.cache.url=https://gradle-enterprise.elastic.co/cache/"
22+
GRADLEW_BAT="./gradlew.bat --console=plain --parallel --scan --build-cache --no-watch-fs -Dorg.elasticsearch.build.cache.url=https://gradle-enterprise.elastic.co/cache/"
2323
export GRADLEW_BAT
2424

2525
export $(cat .ci/java-versions.properties | grep '=' | xargs)

.buildkite/pipelines/lucene-snapshot/run-tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ steps:
5656
matrix:
5757
setup:
5858
BWC_VERSION:
59-
- 7.17.13
6059
- 8.9.1
6160
- 8.10.0
6261
agents:

.ci/scripts/packaging-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,5 @@ sudo -E env \
7878
--unset=JAVA_HOME \
7979
SYSTEM_JAVA_HOME=`readlink -f -n $BUILD_JAVA_HOME` \
8080
DOCKER_CONFIG="${HOME}/.docker" \
81-
./gradlew -g $HOME/.gradle --scan --parallel --build-cache -Dorg.elasticsearch.build.cache.url=https://gradle-enterprise.elastic.co/cache/ --continue $@
81+
./gradlew -g $HOME/.gradle --console=plain --scan --parallel --build-cache -Dorg.elasticsearch.build.cache.url=https://gradle-enterprise.elastic.co/cache/ --continue $@
8282

benchmarks/src/main/java/org/elasticsearch/benchmark/index/codec/tsdb/internal/AbstractDocValuesForUtilBenchmark.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public abstract class AbstractDocValuesForUtilBenchmark {
2121
protected final int blockSize;
2222

2323
public AbstractDocValuesForUtilBenchmark() {
24-
this.forUtil = new DocValuesForUtil();
24+
this.forUtil = new DocValuesForUtil(ES87TSDBDocValuesFormat.NUMERIC_BLOCK_SIZE);
2525
this.blockSize = ES87TSDBDocValuesFormat.NUMERIC_BLOCK_SIZE;
2626
}
2727

benchmarks/src/main/java/org/elasticsearch/benchmark/index/codec/tsdb/internal/DecodeBenchmark.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import org.apache.lucene.store.ByteArrayDataInput;
1313
import org.apache.lucene.store.ByteArrayDataOutput;
1414
import org.apache.lucene.store.DataOutput;
15-
import org.elasticsearch.index.codec.tsdb.DocValuesForUtil;
1615
import org.openjdk.jmh.infra.Blackhole;
1716

1817
import java.io.IOException;
@@ -44,7 +43,7 @@ public void setupInvocation(int bitsPerValue) {
4443

4544
@Override
4645
public void benchmark(int bitsPerValue, Blackhole bh) throws IOException {
47-
DocValuesForUtil.decode(bitsPerValue, this.dataInput, this.output);
46+
forUtil.decode(bitsPerValue, this.dataInput, this.output);
4847
bh.consume(this.output);
4948
}
5049
}

benchmarks/src/main/java/org/elasticsearch/benchmark/vector/VectorScorerBenchmark.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import org.apache.lucene.store.MMapDirectory;
2020
import org.apache.lucene.util.hnsw.RandomVectorScorer;
2121
import org.apache.lucene.util.hnsw.RandomVectorScorerSupplier;
22-
import org.apache.lucene.util.quantization.RandomAccessQuantizedByteVectorValues;
22+
import org.apache.lucene.util.quantization.QuantizedByteVectorValues;
2323
import org.apache.lucene.util.quantization.ScalarQuantizer;
2424
import org.elasticsearch.common.logging.LogConfigurator;
2525
import org.elasticsearch.core.IOUtils;
@@ -217,19 +217,17 @@ public float squareDistanceScalar() {
217217
return 1 / (1f + adjustedDistance);
218218
}
219219

220-
RandomAccessQuantizedByteVectorValues vectorValues(int dims, int size, IndexInput in, VectorSimilarityFunction sim) throws IOException {
220+
QuantizedByteVectorValues vectorValues(int dims, int size, IndexInput in, VectorSimilarityFunction sim) throws IOException {
221221
var sq = new ScalarQuantizer(0.1f, 0.9f, (byte) 7);
222222
var slice = in.slice("values", 0, in.length());
223223
return new OffHeapQuantizedByteVectorValues.DenseOffHeapVectorValues(dims, size, sq, false, sim, null, slice);
224224
}
225225

226-
RandomVectorScorerSupplier luceneScoreSupplier(RandomAccessQuantizedByteVectorValues values, VectorSimilarityFunction sim)
227-
throws IOException {
226+
RandomVectorScorerSupplier luceneScoreSupplier(QuantizedByteVectorValues values, VectorSimilarityFunction sim) throws IOException {
228227
return new Lucene99ScalarQuantizedVectorScorer(null).getRandomVectorScorerSupplier(sim, values);
229228
}
230229

231-
RandomVectorScorer luceneScorer(RandomAccessQuantizedByteVectorValues values, VectorSimilarityFunction sim, float[] queryVec)
232-
throws IOException {
230+
RandomVectorScorer luceneScorer(QuantizedByteVectorValues values, VectorSimilarityFunction sim, float[] queryVec) throws IOException {
233231
return new Lucene99ScalarQuantizedVectorScorer(null).getRandomVectorScorer(sim, values, queryVec);
234232
}
235233

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/DockerBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public enum DockerBase {
2727
// Chainguard based wolfi image with latest jdk
2828
// This is usually updated via renovatebot
2929
// spotless:off
30-
WOLFI("docker.elastic.co/wolfi/chainguard-base:latest@sha256:277ebb42c458ef39cb4028f9204f0b3d51d8cd628ea737a65696a1143c3e42fe",
30+
WOLFI("docker.elastic.co/wolfi/chainguard-base:latest@sha256:bf163e1977002301f7b9fd28fe6837a8cb2dd5c83e4cd45fb67fb28d15d5d40f",
3131
"-wolfi",
3232
"apk"
3333
),

build-tools-internal/src/main/resources/forbidden/es-server-signatures.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,6 @@ org.apache.lucene.util.Version#parseLeniently(java.lang.String)
5959

6060
org.apache.lucene.index.NoMergePolicy#INSTANCE @ explicit use of NoMergePolicy risks forgetting to configure NoMergeScheduler; use org.elasticsearch.common.lucene.Lucene#indexWriterConfigWithNoMerging() instead.
6161

62-
@defaultMessage Spawns a new thread which is solely under lucenes control use ThreadPool#relativeTimeInMillis instead
63-
org.apache.lucene.search.TimeLimitingCollector#getGlobalTimerThread()
64-
org.apache.lucene.search.TimeLimitingCollector#getGlobalCounter()
65-
6662
@defaultMessage Don't interrupt threads use FutureUtils#cancel(Future<T>) instead
6763
java.util.concurrent.Future#cancel(boolean)
6864

build-tools-internal/version.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
elasticsearch = 9.0.0
2-
lucene = 9.12.0
2+
lucene = 10.0.0
33

44
bundled_jdk_vendor = openjdk
55
bundled_jdk = 22.0.1+8@c7ec1332f7bb44aeba2eb341ae18aca4
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the "Elastic License
4+
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
5+
* Public License v 1"; you may not use this file except in compliance with, at
6+
* your election, the "Elastic License 2.0", the "GNU Affero General Public
7+
* License v3.0 only", or the "Server Side Public License, v 1".
8+
*/
9+
10+
package org.elasticsearch.gradle.util;
11+
12+
import java.util.stream.Collectors;
13+
14+
public class PlatformUtils {
15+
16+
public static String normalize(String input) {
17+
return input.lines()
18+
.map(it -> it.replace('\\', '/'))
19+
.map(it -> it.replaceAll("\\d+\\.\\d\\ds", "0.00s"))
20+
.map(it -> it.replace("file:/./", "file:./"))
21+
.collect(Collectors.joining("\n"));
22+
}
23+
}

0 commit comments

Comments
 (0)