Skip to content

Commit 17be216

Browse files
committed
Merge branch 'main' into create-pull-request/patch-main
2 parents 28256c6 + 981127d commit 17be216

File tree

90 files changed

+3585
-372
lines changed

Some content is hidden

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

90 files changed

+3585
-372
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010
*.bcfks binary
1111
*.crt binary
1212
*.p12 binary
13+
*.ttf binary
1314
*.txt text=auto
1415
CHANGELOG.md merge=union

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,19 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
77
### Added
88
- Expand fetch phase profiling to support inner hits and top hits aggregation phases ([##18936](https://github.com/opensearch-project/OpenSearch/pull/18936))
99
- Add temporal routing processors for time-based document routing ([#18920](https://github.com/opensearch-project/OpenSearch/issues/18920))
10+
- Implement Query Rewriting Infrastructure ([#19060](https://github.com/opensearch-project/OpenSearch/pull/19060))
1011
- The dynamic mapping parameter supports false_allow_templates ([#19065](https://github.com/opensearch-project/OpenSearch/pull/19065))
1112
- Add a toBuilder method in EngineConfig to support easy modification of configs([#19054](https://github.com/opensearch-project/OpenSearch/pull/19054))
1213
- Add StoreFactory plugin interface for custom Store implementations([#19091](https://github.com/opensearch-project/OpenSearch/pull/19091))
1314
- Use S3CrtClient for higher throughput while uploading files to S3 ([#18800](https://github.com/opensearch-project/OpenSearch/pull/18800))
1415
- Add a dynamic setting to change skip_cache_factor and min_frequency for querycache ([#18351](https://github.com/opensearch-project/OpenSearch/issues/18351))
16+
- Add overload constructor for Translog to accept Channel Factory as a parameter ([#18918](https://github.com/opensearch-project/OpenSearch/pull/18918))
1517

1618
### Changed
1719
- Add CompletionStage variants to methods in the Client Interface and default to ActionListener impl ([#18998](https://github.com/opensearch-project/OpenSearch/pull/18998))
1820
- IllegalArgumentException when scroll ID references a node not found in Cluster ([#19031](https://github.com/opensearch-project/OpenSearch/pull/19031))
1921
- Adding ScriptedAvg class to painless spi to allowlist usage from plugins ([#19006](https://github.com/opensearch-project/OpenSearch/pull/19006))
22+
- Replace centos:8 with almalinux:8 since centos docker images are deprecated ([#19154](https://github.com/opensearch-project/OpenSearch/pull/19154))
2023

2124
### Fixed
2225
- Fix unnecessary refreshes on update preparation failures ([#15261](https://github.com/opensearch-project/OpenSearch/issues/15261))
@@ -43,6 +46,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4346
- Bump `com.google.auth:google-auth-library-oauth2-http` from 1.37.1 to 1.38.0 ([#19144](https://github.com/opensearch-project/OpenSearch/pull/19144))
4447
- Bump `com.squareup.okio:okio` from 3.15.0 to 3.16.0 ([#19146](https://github.com/opensearch-project/OpenSearch/pull/19146))
4548
- Bump Slf4j from 1.7.36 to 2.0.17 ([#19136](https://github.com/opensearch-project/OpenSearch/pull/19136))
49+
- Bump `org.apache.tika` from 2.9.2 to 3.2.2 ([#19125](https://github.com/opensearch-project/OpenSearch/pull/19125))
50+
- Bump `org.apache.commons:commons-compress` from 1.26.1 to 1.28.0 ([#19125](https://github.com/opensearch-project/OpenSearch/pull/19125))
4651

4752
### Deprecated
4853

buildSrc/src/main/java/org/opensearch/gradle/DockerBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
* This class models the different Docker base images that are used to build Docker distributions of OpenSearch.
3737
*/
3838
public enum DockerBase {
39-
CENTOS("centos:8");
39+
ALMALINUX("almalinux:8");
4040

4141
private final String image;
4242

distribution/docker/build.gradle

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ project.ext {
132132
}
133133

134134
void addCopyDockerContextTask(Architecture architecture, DockerBase base) {
135-
if (base != DockerBase.CENTOS) {
136-
throw new GradleException("The only allowed docker base image for builds is CENTOS")
135+
if (base != DockerBase.ALMALINUX) {
136+
throw new GradleException("The only allowed docker base image for builds is ALMALINUX")
137137
}
138138

139139
tasks.register(taskName("copy", architecture, base, "DockerContext"), Sync) {
@@ -181,8 +181,8 @@ opensearch_distributions {
181181
tasks.named("preProcessFixture").configure {
182182
dependsOn opensearch_distributions.docker
183183
// always run the task, otherwise the folders won't be created
184-
outputs.upToDateWhen {
185-
false
184+
outputs.upToDateWhen {
185+
false
186186
}
187187
doLast {
188188
// tests expect to have an empty repo
@@ -208,8 +208,8 @@ tasks.named("check").configure {
208208
}
209209

210210
void addBuildDockerImage(Architecture architecture, DockerBase base) {
211-
if (base != DockerBase.CENTOS) {
212-
throw new GradleException("The only allowed docker base image for builds is CENTOS")
211+
if (base != DockerBase.ALMALINUX) {
212+
throw new GradleException("The only allowed docker base image for builds is ALMALINUX")
213213
}
214214

215215
final TaskProvider<DockerBuildTask> buildDockerImageTask =
@@ -232,9 +232,9 @@ void addBuildDockerImage(Architecture architecture, DockerBase base) {
232232
}
233233

234234
for (final Architecture architecture : Architecture.values()) {
235-
// We only create Docker images for the distribution on CentOS.
235+
// We only create Docker images for the distribution on AlmaLinux.
236236
for (final DockerBase base : DockerBase.values()) {
237-
if (base == DockerBase.CENTOS) {
237+
if (base == DockerBase.ALMALINUX) {
238238
addCopyDockerContextTask(architecture, base)
239239
addBuildDockerImage(architecture, base)
240240
}
@@ -257,7 +257,7 @@ subprojects { Project subProject ->
257257
apply plugin: 'distribution'
258258

259259
final Architecture architecture = subProject.name.contains('arm64-') ? Architecture.ARM64 : Architecture.X64
260-
final DockerBase base = DockerBase.CENTOS
260+
final DockerBase base = DockerBase.ALMALINUX
261261

262262
final String arch = architecture == Architecture.ARM64 ? '-arm64' : ''
263263
final String extension = 'docker.tar'

distribution/docker/docker-build-context/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ tasks.register("buildDockerBuildContext", Tar) {
1919
archiveClassifier = "docker-build-context"
2020
archiveBaseName = "opensearch"
2121
// Non-local builds don't need to specify an architecture.
22-
with dockerBuildContext(null, DockerBase.CENTOS, false)
22+
with dockerBuildContext(null, DockerBase.ALMALINUX, false)
2323
}
2424

2525
tasks.named("assemble").configure { dependsOn "buildDockerBuildContext" }

distribution/docker/src/docker/Dockerfile

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,12 @@ FROM ${base_image}
6363
6464
ENV OPENSEARCH_CONTAINER true
6565
66-
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-* && \\
67-
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.epel.cloud|g' /etc/yum.repos.d/CentOS-Linux-* && \\
68-
for iter in {1..10}; do \\
69-
${package_manager} update --setopt=tsflags=nodocs -y && \\
70-
${package_manager} install --setopt=tsflags=nodocs -y \\
71-
nc shadow-utils zip unzip && \\
72-
${package_manager} clean all && exit_code=0 && break || exit_code=\$? && echo "${package_manager} error: retry \$iter in 10s" && \\
73-
sleep 10; \\
74-
done; \\
75-
(exit \$exit_code)
66+
RUN set -e \\
67+
&& dnf -y update \\
68+
&& dnf -y install --setopt=tsflags=nodocs \\
69+
nmap-ncat shadow-utils zip unzip \\
70+
&& dnf clean all \\
71+
&& rm -rf /var/cache/dnf
7672
7773
RUN groupadd -g 1000 opensearch && \\
7874
adduser -u 1000 -g 1000 -G 0 -d /usr/share/opensearch opensearch && \\

distribution/tools/plugin-cli/build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,10 @@ thirdPartyAudit.ignoreMissingClasses(
8181
'org.tukaani.xz.XZOutputStream',
8282
'org.apache.commons.codec.digest.PureJavaCrc32C',
8383
'org.apache.commons.codec.digest.XXHash32',
84-
'org.apache.commons.lang3.reflect.FieldUtils'
84+
'org.apache.commons.lang3.reflect.FieldUtils',
85+
'org.apache.commons.lang3.ArrayFill',
86+
'org.apache.commons.lang3.ArrayUtils',
87+
'org.apache.commons.lang3.StringUtils',
88+
'org.apache.commons.lang3.SystemProperties',
89+
'org.apache.commons.lang3.function.Suppliers'
8590
)

distribution/tools/plugin-cli/licenses/commons-compress-1.26.1.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
e482f2c7a88dac3c497e96aa420b6a769f59c8d7

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ httpasyncclient = "4.1.5"
5050
commonslogging = "1.2"
5151
commonscodec = "1.18.0"
5252
commonslang = "3.18.0"
53-
commonscompress = "1.26.1"
53+
commonscompress = "1.28.0"
5454
commonsio = "2.16.0"
5555
# plugin dependencies
5656
aws = "2.30.31"

0 commit comments

Comments
 (0)