Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into highlight/match-only-…
Browse files Browse the repository at this point in the history
…text-bug
  • Loading branch information
romseygeek committed Oct 4, 2023
2 parents 2a30152 + f32c8f5 commit 5fda2c1
Show file tree
Hide file tree
Showing 839 changed files with 13,172 additions and 5,482 deletions.
2 changes: 1 addition & 1 deletion .buildkite/check-es-serverless.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
steps:
- trigger: elasticsearch-serverless-update-submodule
- trigger: elasticsearch-serverless-validate-submodule
label: ":elasticsearch: Check elasticsearch changes against serverless"
build:
message: "Validate latest elasticsearch changes"
Expand Down
2 changes: 0 additions & 2 deletions .buildkite/scripts/dra-workflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ find "$WORKSPACE" -type d -path "*/build/distributions" -exec chmod a+w {} \;

echo --- Running release-manager

exit 0

# Artifacts should be generated
docker run --rm \
--name release-manager \
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/update-es-serverless.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
steps:
- trigger: elasticsearch-serverless-update-submodule
- trigger: elasticsearch-serverless-validate-submodule
label: ":elasticsearch: Update elasticsearch submodule in serverless"
build:
message: "Elasticsearch submodule update build"
Expand Down
2 changes: 2 additions & 0 deletions .ci/dockerOnLinuxExclusions
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
# excluded.
debian-8
opensuse-leap-15.1
opensuse-leap-15.5
ol-7.7
sles-12.3 # older version used in Vagrant image
sles-12.5
sles-15.1
sles-15.2
sles-15.3
sles-15.4
sles-15.5

# These OSes are deprecated and filtered starting with 8.0.0, but need to be excluded
# for PR checks
Expand Down
66 changes: 0 additions & 66 deletions .ci/jobs.t/elastic+elasticsearch+dra-snapshot.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .ci/jobs.t/elastic+elasticsearch+dra-staging-trigger.yml

This file was deleted.

51 changes: 0 additions & 51 deletions .ci/jobs.t/elastic+elasticsearch+dra-staging-update.yml

This file was deleted.

77 changes: 0 additions & 77 deletions .ci/jobs.t/elastic+elasticsearch+dra-staging.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ private static Operator operator(String grouping, String op, String dataType) {
DriverContext driverContext = driverContext();
return new HashAggregationOperator(
List.of(supplier(op, dataType, groups.size()).groupingAggregatorFactory(AggregatorMode.SINGLE)),
() -> BlockHash.build(groups, BIG_ARRAYS, 16 * 1024, false),
() -> BlockHash.build(groups, driverContext, 16 * 1024, false),
driverContext
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,25 +72,30 @@ public class EvalBenchmark {
}
}

static final DriverContext driverContext = new DriverContext(
BigArrays.NON_RECYCLING_INSTANCE,
BlockFactory.getInstance(new NoopCircuitBreaker("noop"), BigArrays.NON_RECYCLING_INSTANCE)
);

@Param({ "abs", "add", "date_trunc", "equal_to_const", "long_equal_to_long", "long_equal_to_int", "mv_min", "mv_min_ascending" })
public String operation;

private static Operator operator(String operation) {
return new EvalOperator(evaluator(operation));
return new EvalOperator(driverContext.blockFactory(), evaluator(operation));
}

private static EvalOperator.ExpressionEvaluator evaluator(String operation) {
return switch (operation) {
case "abs" -> {
FieldAttribute longField = longField();
yield EvalMapper.toEvaluator(new Abs(Source.EMPTY, longField), layout(longField)).get(driverContext());
yield EvalMapper.toEvaluator(new Abs(Source.EMPTY, longField), layout(longField)).get(driverContext);
}
case "add" -> {
FieldAttribute longField = longField();
yield EvalMapper.toEvaluator(
new Add(Source.EMPTY, longField, new Literal(Source.EMPTY, 1L, DataTypes.LONG)),
layout(longField)
).get(driverContext());
).get(driverContext);
}
case "date_trunc" -> {
FieldAttribute timestamp = new FieldAttribute(
Expand All @@ -101,28 +106,28 @@ private static EvalOperator.ExpressionEvaluator evaluator(String operation) {
yield EvalMapper.toEvaluator(
new DateTrunc(Source.EMPTY, new Literal(Source.EMPTY, Duration.ofHours(24), EsqlDataTypes.TIME_DURATION), timestamp),
layout(timestamp)
).get(driverContext());
).get(driverContext);
}
case "equal_to_const" -> {
FieldAttribute longField = longField();
yield EvalMapper.toEvaluator(
new Equals(Source.EMPTY, longField, new Literal(Source.EMPTY, 100_000L, DataTypes.LONG)),
layout(longField)
).get(driverContext());
).get(driverContext);
}
case "long_equal_to_long" -> {
FieldAttribute lhs = longField();
FieldAttribute rhs = longField();
yield EvalMapper.toEvaluator(new Equals(Source.EMPTY, lhs, rhs), layout(lhs, rhs)).get(driverContext());
yield EvalMapper.toEvaluator(new Equals(Source.EMPTY, lhs, rhs), layout(lhs, rhs)).get(driverContext);
}
case "long_equal_to_int" -> {
FieldAttribute lhs = longField();
FieldAttribute rhs = intField();
yield EvalMapper.toEvaluator(new Equals(Source.EMPTY, lhs, rhs), layout(lhs, rhs)).get(driverContext());
yield EvalMapper.toEvaluator(new Equals(Source.EMPTY, lhs, rhs), layout(lhs, rhs)).get(driverContext);
}
case "mv_min", "mv_min_ascending" -> {
FieldAttribute longField = longField();
yield EvalMapper.toEvaluator(new MvMin(Source.EMPTY, longField), layout(longField)).get(driverContext());
yield EvalMapper.toEvaluator(new MvMin(Source.EMPTY, longField), layout(longField)).get(driverContext);
}
default -> throw new UnsupportedOperationException();
};
Expand Down Expand Up @@ -262,11 +267,4 @@ private static void run(String operation) {
checkExpected(operation, output);
}
}

static DriverContext driverContext() {
return new DriverContext(
BigArrays.NON_RECYCLING_INSTANCE,
BlockFactory.getInstance(new NoopCircuitBreaker("noop"), BigArrays.NON_RECYCLING_INSTANCE)
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
package org.elasticsearch.gradle.internal.docker;

import org.elasticsearch.gradle.Architecture;
import org.elasticsearch.gradle.OS;
import org.elasticsearch.gradle.Version;
import org.elasticsearch.gradle.internal.info.BuildParams;
import org.gradle.api.GradleException;
Expand Down Expand Up @@ -211,6 +212,11 @@ private boolean isExcludedOs() {
return false;
}

// Even if for some reason Docker exists on Windows agents, flag it as unsupported
if (OS.current() == OS.WINDOWS) {
return true;
}

// Only some hosts in CI are configured with Docker. We attempt to work out the OS
// and version, so that we know whether to expect to find Docker. We don't attempt
// to probe for whether Docker is available, because that doesn't tell us whether
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ public void execute(Task task) {
composeExtension.getRemoveContainers().set(true);
composeExtension.getCaptureContainersOutput()
.set(EnumSet.of(LogLevel.INFO, LogLevel.DEBUG).contains(project.getGradle().getStartParameter().getLogLevel()));
composeExtension.getUseDockerComposeV2().set(false);
composeExtension.getExecutable().set(this.providerFactory.provider(() -> {
String composePath = dockerSupport.get().getDockerAvailability().dockerComposePath();
LOGGER.debug("Docker Compose path: {}", composePath);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ org.apache.lucene.index.NoMergePolicy#INSTANCE @ explicit use of NoMergePolicy r
org.apache.lucene.search.TimeLimitingCollector#getGlobalTimerThread()
org.apache.lucene.search.TimeLimitingCollector#getGlobalCounter()

@defaultMessage use @org.elasticsearch.common.lucene.RegExp instead to avoid StackOverflowError
org.apache.lucene.util.automaton.RegExp

@defaultMessage Don't interrupt threads use FutureUtils#cancel(Future<T>) instead
java.util.concurrent.Future#cancel(boolean)

Expand Down
2 changes: 1 addition & 1 deletion build-tools-internal/version.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
elasticsearch = 8.11.0
lucene = 9.7.0
lucene = 9.8.0

bundled_jdk_vendor = openjdk
bundled_jdk = 21+35@fd2272bbf8e04c3dbaee13770090416c
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import org.elasticsearch.action.support.HandledTransportAction;
import org.elasticsearch.action.update.UpdateResponse;
import org.elasticsearch.common.inject.Inject;
import org.elasticsearch.common.util.concurrent.EsExecutors;
import org.elasticsearch.index.shard.ShardId;
import org.elasticsearch.tasks.Task;
import org.elasticsearch.transport.TransportService;
Expand All @@ -30,7 +31,7 @@ public class TransportNoopBulkAction extends HandledTransportAction<BulkRequest,

@Inject
public TransportNoopBulkAction(TransportService transportService, ActionFilters actionFilters) {
super(NoopBulkAction.NAME, transportService, actionFilters, BulkRequest::new);
super(NoopBulkAction.NAME, transportService, actionFilters, BulkRequest::new, EsExecutors.DIRECT_EXECUTOR_SERVICE);
}

@Override
Expand Down
Loading

0 comments on commit 5fda2c1

Please sign in to comment.