Skip to content

Commit 320cf6c

Browse files
authored
Merge branch 'main' into indices-admin-client
Signed-off-by: Craig Perkins <[email protected]>
2 parents 21f9f85 + f2a664a commit 320cf6c

File tree

160 files changed

+3702
-520
lines changed

Some content is hidden

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

160 files changed

+3702
-520
lines changed

.ci/bwcVersions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ BWC_VERSION:
4646
- "2.19.1"
4747
- "2.19.2"
4848
- "2.19.3"
49+
- "2.19.4"
4950
- "3.0.0"
5051
- "3.1.0"
5152
- "3.2.0"

.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: 11 additions & 3 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
- Add CompletionStage variants to IndicesAdminClient as an alternative to ActionListener ([#19161](https://github.com/opensearch-project/OpenSearch/pull/19161))
2124

2225
### Fixed
@@ -35,12 +38,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
3538
- Bump `commons-cli:commons-cli` from 1.9.0 to 1.10.0 ([#19021](https://github.com/opensearch-project/OpenSearch/pull/19021))
3639
- Bump `org.jline:jline` from 3.30.4 to 3.30.5 ([#19013](https://github.com/opensearch-project/OpenSearch/pull/19013))
3740
- Bump `com.github.spotbugs:spotbugs-annotations` from 4.9.3 to 4.9.4 ([#19015](https://github.com/opensearch-project/OpenSearch/pull/19015))
38-
- Bump `com.azure:azure-storage-common` from 12.29.1 to 12.30.1 ([#19016](https://github.com/opensearch-project/OpenSearch/pull/19016))
41+
- Bump `com.azure:azure-storage-common` from 12.29.1 to 12.30.2 ([#19016](https://github.com/opensearch-project/OpenSearch/pull/19016), [#19145](https://github.com/opensearch-project/OpenSearch/pull/19145))
3942
- Update OpenTelemetry to 1.53.0 and OpenTelemetry SemConv to 1.34.0 ([#19068](https://github.com/opensearch-project/OpenSearch/pull/19068))
4043
- Bump `1password/load-secrets-action` from 2 to 3 ([#19100](https://github.com/opensearch-project/OpenSearch/pull/19100))
4144
- Bump `com.nimbusds:nimbus-jose-jwt` from 10.3 to 10.4.2 ([#19099](https://github.com/opensearch-project/OpenSearch/pull/19099), [#19101](https://github.com/opensearch-project/OpenSearch/pull/19101))
4245
- Bump netty from 4.1.121.Final to 4.1.124.Final ([#19103](https://github.com/opensearch-project/OpenSearch/pull/19103))
43-
- Bump google cloud storage from 1.113.1 to 2.55.0 ([#4547](https://github.com/opensearch-project/OpenSearch/pull/4547))
46+
- Bump Google Cloud Storage SDK from 1.113.1 to 2.55.0 ([#18922](https://github.com/opensearch-project/OpenSearch/pull/18922))
47+
- 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))
48+
- Bump `com.squareup.okio:okio` from 3.15.0 to 3.16.0 ([#19146](https://github.com/opensearch-project/OpenSearch/pull/19146))
49+
- Bump Slf4j from 1.7.36 to 2.0.17 ([#19136](https://github.com/opensearch-project/OpenSearch/pull/19136))
50+
- Bump `org.apache.tika` from 2.9.2 to 3.2.2 ([#19125](https://github.com/opensearch-project/OpenSearch/pull/19125))
51+
- Bump `org.apache.commons:commons-compress` from 1.26.1 to 1.28.0 ([#19125](https://github.com/opensearch-project/OpenSearch/pull/19125))
4452

4553
### Deprecated
4654

@@ -49,4 +57,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4957

5058
### Security
5159

52-
[Unreleased 3.x]: https://github.com/opensearch-project/OpenSearch/compare/3.1...main
60+
[Unreleased 3.x]: https://github.com/opensearch-project/OpenSearch/compare/3.2...main

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

client/rest/build.gradle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,6 @@ testingConventions {
105105
thirdPartyAudit {
106106
ignoreMissingClasses(
107107
'org.conscrypt.Conscrypt',
108-
'org.slf4j.impl.StaticLoggerBinder',
109-
'org.slf4j.impl.StaticMDCBinder',
110-
'org.slf4j.impl.StaticMarkerBinder',
111108
//commons-logging optional dependencies
112109
'org.apache.avalon.framework.logger.Logger',
113110
'org.apache.log.Hierarchy',

client/rest/licenses/slf4j-api-1.7.36.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+
d9e58ac9c7779ba3bf8142aff6c830617a7fe60f

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 && \\

0 commit comments

Comments
 (0)