Skip to content

Commit 0b1e2fb

Browse files
authored
Merge branch 'main' into conditional_OptimizerExpressionRule
2 parents 1ef4f3a + aa30951 commit 0b1e2fb

File tree

11 files changed

+51
-45
lines changed

11 files changed

+51
-45
lines changed

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,17 @@ public enum DockerBase {
2828
"apk",
2929
"Dockerfile"
3030
),
31-
FIPS(
32-
"docker.elastic.co/wolfi/chainguard-base-fips:sha256-ebfc3f1d7dba992231747a2e05ad1b859843e81b5e676ad342859d7cf9e425a7@sha256:ebfc3f1d7dba992231747a2e05ad1b859843e81b5e676ad342859d7cf9e425a7",
33-
"-fips",
34-
"apk",
35-
"Dockerfile"
36-
),
3731
// spotless:on
3832
// Based on WOLFI above, with more extras. We don't set a base image because
3933
// we programmatically extend from the wolfi image.
40-
CLOUD_ESS(null, "-cloud-ess", "apk", "Dockerfile.cloud-ess"),;
34+
CLOUD_ESS(null, "-cloud-ess", "apk", "Dockerfile.cloud-ess"),
35+
36+
CLOUD_ESS_FIPS(
37+
"docker.elastic.co/wolfi/chainguard-base-fips:sha256-ebfc3f1d7dba992231747a2e05ad1b859843e81b5e676ad342859d7cf9e425a7@sha256:ebfc3f1d7dba992231747a2e05ad1b859843e81b5e676ad342859d7cf9e425a7",
38+
"-cloud-ess-fips",
39+
"apk",
40+
"Dockerfile"
41+
);
4142

4243
private final String image;
4344
private final String suffix;

distribution/docker/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ void addBuildDockerContextTask(Architecture architecture, DockerBase base, Strin
314314
filter TransformLog4jConfigFilter
315315
}
316316
}
317-
if(base == DockerBase.FIPS) {
317+
if(base == DockerBase.CLOUD_ESS_FIPS) {
318318

319319
// If we're performing a release build, but `build.id` hasn't been set, we can
320320
// infer that we're not at the Docker building stage of the build, and therefore
@@ -608,19 +608,19 @@ subprojects { Project subProject ->
608608
DockerBase base = DockerBase.DEFAULT
609609
if (subProject.name.contains('ironbank-')) {
610610
base = DockerBase.IRON_BANK
611-
} else if (subProject.name.contains('cloud-ess-')) {
611+
} else if (subProject.name.contains('cloud-ess-docker')) {
612612
base = DockerBase.CLOUD_ESS
613613
} else if (subProject.name.contains('wolfi-')) {
614614
base = DockerBase.WOLFI
615-
} else if (subProject.name.contains('fips-')) {
616-
base = DockerBase.FIPS
615+
} else if (subProject.name.contains('cloud-ess-fips-docker')) {
616+
base = DockerBase.CLOUD_ESS_FIPS
617617
}
618618

619619
final String arch = architecture == Architecture.AARCH64 ? '-aarch64' : ''
620620
final String extension =
621621
(base == DockerBase.IRON_BANK ? 'ironbank.tar' :
622622
(base == DockerBase.CLOUD_ESS ? 'cloud-ess.tar' :
623-
(base == DockerBase.FIPS ? 'fips.tar' :
623+
(base == DockerBase.CLOUD_ESS_FIPS ? 'cloud-ess-fips.tar' :
624624
(base == DockerBase.WOLFI ? 'wolfi.tar' :
625625
'docker.tar'))))
626626
final String artifactName = "elasticsearch${arch}${base.suffix}_test"

distribution/docker/src/docker/Dockerfile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ RUN chmod 0555 /bin/tini
4141
<% } else { %>
4242
4343
# Install required packages to extract the Elasticsearch distribution
44-
<% if (docker_base == "wolfi" || docker_base == "fips") { %>
44+
<% if (docker_base == "wolfi" || docker_base == "cloud_ess_fips") { %>
4545
RUN <%= retry.loop(package_manager, "export DEBIAN_FRONTEND=noninteractive && ${package_manager} update && ${package_manager} update && ${package_manager} add --no-cache curl") %>
4646
<% } else { %>
4747
RUN <%= retry.loop(package_manager, "${package_manager} install -y findutils tar gzip") %>
@@ -115,7 +115,7 @@ RUN sed -i -e 's/ES_DISTRIBUTION_TYPE=tar/ES_DISTRIBUTION_TYPE=docker/' bin/elas
115115
chmod 0775 bin config config/jvm.options.d data logs plugins && \\
116116
find config -type f -exec chmod 0664 {} +
117117

118-
<% if (docker_base == "fips") { %>
118+
<% if (docker_base == "cloud_ess_fips") { %>
119119

120120
# Add plugins infrastructure
121121
RUN mkdir -p /opt/plugins/archive
@@ -179,7 +179,7 @@ RUN ${package_manager} update --setopt=tsflags=nodocs -y && \\
179179
nc shadow-utils zip findutils unzip procps-ng && \\
180180
${package_manager} clean all
181181
182-
<% } else if (docker_base == "wolfi" || docker_base == "fips") { %>
182+
<% } else if (docker_base == "wolfi" || docker_base == "cloud_ess_fips") { %>
183183
RUN <%= retry.loop(package_manager,
184184
"export DEBIAN_FRONTEND=noninteractive && \n" +
185185
" ${package_manager} update && \n" +
@@ -208,7 +208,7 @@ RUN <%= retry.loop(
208208
<% } %>
209209
210210
211-
<% if (docker_base == "wolfi" || docker_base == "fips") { %>
211+
<% if (docker_base == "wolfi" || docker_base == "cloud_ess_fips") { %>
212212
RUN groupadd -g 1000 elasticsearch && \
213213
adduser -G elasticsearch -u 1000 elasticsearch -D --home /usr/share/elasticsearch elasticsearch && \
214214
adduser elasticsearch root && \
@@ -219,17 +219,17 @@ RUN groupadd -g 1000 elasticsearch && \\
219219
chown -R 0:0 /usr/share/elasticsearch
220220
<% } %>
221221
222-
ENV ELASTIC_CONTAINER true
222+
ENV ELASTIC_CONTAINER=true
223223
224224
WORKDIR /usr/share/elasticsearch
225225
226226
COPY --from=builder --chown=0:0 /usr/share/elasticsearch /usr/share/elasticsearch
227-
<% if (docker_base != "wolfi" && docker_base != "fips") { %>
227+
<% if (docker_base != "wolfi" && docker_base != "cloud_ess_fips") { %>
228228
COPY --from=builder --chown=0:0 /bin/tini /bin/tini
229229
<% } %>
230230
231-
ENV PATH /usr/share/elasticsearch/bin:\$PATH
232-
ENV SHELL /bin/bash
231+
ENV PATH=/usr/share/elasticsearch/bin:\$PATH
232+
ENV SHELL=/bin/bash
233233
COPY ${bin_dir}/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
234234
235235
# 1. Sync the user and group permissions of /etc/passwd
@@ -249,7 +249,7 @@ RUN chmod g=u /etc/passwd && \\
249249
chmod 0775 /usr/share/elasticsearch && \\
250250
chown elasticsearch bin config config/jvm.options.d data logs plugins
251251

252-
<% if (docker_base == 'wolfi' || docker_base == "fips") { %>
252+
<% if (docker_base == 'wolfi' || docker_base == "cloud_ess_fips") { %>
253253
RUN ln -sf /etc/ssl/certs/java/cacerts /usr/share/elasticsearch/jdk/lib/security/cacerts
254254
<% } else { %>
255255
RUN ln -sf /etc/pki/ca-trust/extracted/java/cacerts /usr/share/elasticsearch/jdk/lib/security/cacerts
@@ -292,7 +292,7 @@ RUN mkdir /licenses && ln LICENSE.txt /licenses/LICENSE
292292
COPY LICENSE /licenses/LICENSE.addendum
293293
<% } %>
294294

295-
<% if (docker_base == "wolfi" || docker_base == "fips") { %>
295+
<% if (docker_base == "wolfi" || docker_base == "cloud_ess_fips") { %>
296296
# Our actual entrypoint is `tini`, a minimal but functional init program. It
297297
# calls the entrypoint we provide, while correctly forwarding signals.
298298
ENTRYPOINT ["/sbin/tini", "--", "/usr/local/bin/docker-entrypoint.sh"]
@@ -312,9 +312,9 @@ USER 1000:0
312312
HEALTHCHECK --interval=10s --timeout=5s --start-period=1m --retries=5 CMD curl -I -f --max-time 5 http://localhost:9200 || exit 1
313313
<% } %>
314314

315-
<% if (docker_base == 'fips') { %>
315+
<% if (docker_base == 'cloud_ess_fips') { %>
316316
COPY --from=builder --chown=0:0 /opt /opt
317-
ENV ES_PLUGIN_ARCHIVE_DIR /opt/plugins/archive
317+
ENV ES_PLUGIN_ARCHIVE_DIR=/opt/plugins/archive
318318
WORKDIR /usr/share/elasticsearch
319319
COPY --from=builder --chown=0:0 /fips/libs/*.jar /usr/share/elasticsearch/lib/
320320
<% } %>

docs/changelog/127522.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 127522
2+
summary: Use INTERNAL_INGEST for Inference
3+
area: Machine Learning
4+
type: bug
5+
issues:
6+
- 127519

docs/reference/query-languages/esql/_snippets/commands/layout/lookup-join.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ added as new columns to that row.
4141
If multiple documents in the lookup index match a single row in your
4242
results, the output will contain one row for each matching combination.
4343

44-
**Examples**
45-
4644
::::{tip}
4745
In case of name collisions, the newly created columns will override existing columns.
4846
::::
4947

48+
**Examples**
49+
5050
**IP Threat correlation**: This query would allow you to see if any source
5151
IPs match known malicious addresses.
5252

muted-tests.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -429,18 +429,9 @@ tests:
429429
- class: org.elasticsearch.xpack.esql.heap_attack.HeapAttackIT
430430
method: testLookupExplosionNoFetch
431431
issue: https://github.com/elastic/elasticsearch/issues/127365
432-
- class: org.elasticsearch.action.admin.cluster.state.TransportClusterStateActionDisruptionIT
433-
method: testNonLocalRequestAlwaysFindsMasterAndWaitsForMetadata
434-
issue: https://github.com/elastic/elasticsearch/issues/127422
435432
- class: org.elasticsearch.xpack.esql.qa.single_node.PushQueriesIT
436433
method: testPushCaseInsensitiveEqualityOnDefaults
437434
issue: https://github.com/elastic/elasticsearch/issues/127431
438-
- class: org.elasticsearch.action.admin.cluster.state.TransportClusterStateActionDisruptionIT
439-
method: testLocalRequestAlwaysSucceeds
440-
issue: https://github.com/elastic/elasticsearch/issues/127423
441-
- class: org.elasticsearch.action.admin.cluster.state.TransportClusterStateActionDisruptionIT
442-
method: testLocalRequestWaitsForMetadata
443-
issue: https://github.com/elastic/elasticsearch/issues/127466
444435
- class: org.elasticsearch.xpack.esql.qa.single_node.GenerativeIT
445436
method: test
446437
issue: https://github.com/elastic/elasticsearch/issues/127536

server/src/internalClusterTest/java/org/elasticsearch/action/admin/cluster/state/TransportClusterStateActionDisruptionIT.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,16 @@
2828
import java.util.Collection;
2929
import java.util.Collections;
3030
import java.util.List;
31+
import java.util.Optional;
3132
import java.util.concurrent.atomic.AtomicBoolean;
3233
import java.util.stream.Collectors;
3334
import java.util.stream.StreamSupport;
3435

3536
import static org.elasticsearch.cluster.routing.allocation.decider.EnableAllocationDecider.CLUSTER_ROUTING_REBALANCE_ENABLE_SETTING;
3637
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
37-
import static org.hamcrest.Matchers.equalTo;
3838
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
3939
import static org.hamcrest.Matchers.hasSize;
4040
import static org.hamcrest.Matchers.instanceOf;
41-
import static org.hamcrest.Matchers.not;
4241

4342
@ESIntegTestCase.ClusterScope(numDataNodes = 0, scope = ESIntegTestCase.Scope.TEST)
4443
public class TransportClusterStateActionDisruptionIT extends ESIntegTestCase {
@@ -212,11 +211,12 @@ public void runRepeatedlyWhileChangingMaster(Runnable runnable) throws Exception
212211
}
213212
}
214213

215-
assertBusy(() -> {
216-
final String nonMasterNode = randomValueOtherThan(masterName, () -> randomFrom(internalCluster().getNodeNames()));
217-
final String claimedMasterName = internalCluster().getMasterName(nonMasterNode);
218-
assertThat(claimedMasterName, not(equalTo(masterName)));
219-
});
214+
final String nonMasterNode = randomValueOtherThan(masterName, () -> randomFrom(internalCluster().getNodeNames()));
215+
awaitClusterState(
216+
logger,
217+
nonMasterNode,
218+
state -> Optional.ofNullable(state.nodes().getMasterNode()).map(m -> m.getName().equals(masterName) == false).orElse(false)
219+
);
220220

221221
shutdown.set(true);
222222
assertingThread.join();

settings.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ List projects = [
7070
'distribution:docker:ironbank-docker-export',
7171
'distribution:docker:wolfi-docker-aarch64-export',
7272
'distribution:docker:wolfi-docker-export',
73-
'distribution:docker:fips-docker-export',
74-
'distribution:docker:fips-docker-aarch64-export',
73+
'distribution:docker:cloud-ess-fips-docker-export',
74+
'distribution:docker:cloud-ess-fips-docker-aarch64-export',
7575
'distribution:packages:aarch64-deb',
7676
'distribution:packages:deb',
7777
'distribution:packages:aarch64-rpm',

0 commit comments

Comments
 (0)