Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8c5a5a1

Browse files
authoredOct 30, 2024··
Merge branch 'main' into dependabot/gradle/plugins/repository-gcs/com.google.cloud-google-cloud-core-http-2.47.0
Signed-off-by: gaobinlong <gbinlong@amazon.com>
2 parents 74ce0dc + 1e7c122 commit 8c5a5a1

File tree

12 files changed

+498
-181
lines changed

12 files changed

+498
-181
lines changed
 

‎CHANGELOG.md

+3-82
Original file line numberDiff line numberDiff line change
@@ -5,105 +5,26 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55

66
## [Unreleased 2.x]
77
### Added
8-
- Add support for async deletion in S3BlobContainer ([#15621](https://github.com/opensearch-project/OpenSearch/pull/15621))
9-
- MultiTermQueries in keyword fields now default to `indexed` approach and gated behind cluster setting ([#15637](https://github.com/opensearch-project/OpenSearch/pull/15637))
10-
- [Workload Management] Add Integration Tests for Workload Management CRUD APIs ([#15955](https://github.com/opensearch-project/OpenSearch/pull/15955))
11-
- [Workload Management] QueryGroup resource cancellation framework changes ([#15651](https://github.com/opensearch-project/OpenSearch/pull/15651))
12-
- [Workload Management] Add orchestrator for wlm resiliency (QueryGroupService) ([#15925](https://github.com/opensearch-project/OpenSearch/pull/15925))
13-
- [Workload Management] Add QueryGroup Stats API Logic ([15777](https://github.com/opensearch-project/OpenSearch/pull/15777))
14-
- Fallback to Remote cluster-state on Term-Version check mismatch - ([#15424](https://github.com/opensearch-project/OpenSearch/pull/15424))
15-
- Implement WithFieldName interface in ValuesSourceAggregationBuilder & FieldSortBuilder ([#15916](https://github.com/opensearch-project/OpenSearch/pull/15916))
16-
- Add successfulSearchShardIndices in searchRequestContext ([#15967](https://github.com/opensearch-project/OpenSearch/pull/15967), [#16110](https://github.com/opensearch-project/OpenSearch/pull/16110))
17-
- [Tiered Caching] Segmented cache changes ([#16047](https://github.com/opensearch-project/OpenSearch/pull/16047))
18-
- Add support for msearch API to pass search pipeline name - ([#15923](https://github.com/opensearch-project/OpenSearch/pull/15923))
19-
- Add _list/indices API as paginated alternate to _cat/indices ([#14718](https://github.com/opensearch-project/OpenSearch/pull/14718))
20-
- Add success and failure metrics for async shard fetch ([#15976](https://github.com/opensearch-project/OpenSearch/pull/15976))
21-
- Add new metric REMOTE_STORE to NodeStats API response ([#15611](https://github.com/opensearch-project/OpenSearch/pull/15611))
22-
- Add support to dynamically resize threadpools size. ([#16236](https://github.com/opensearch-project/OpenSearch/pull/16236))
23-
- [S3 Repository] Change default retry mechanism of s3 clients to Standard Mode ([#15978](https://github.com/opensearch-project/OpenSearch/pull/15978))
24-
- Add changes to block calls in cat shards, indices and segments based on dynamic limit settings ([#15986](https://github.com/opensearch-project/OpenSearch/pull/15986))
25-
- New `phone` & `phone-search` analyzer + tokenizer ([#15915](https://github.com/opensearch-project/OpenSearch/pull/15915))
26-
- Add _list/shards API as paginated alternate to _cat/shards ([#14641](https://github.com/opensearch-project/OpenSearch/pull/14641))
278
- Latency and Memory allocation improvements to Multi Term Aggregation queries ([#14993](https://github.com/opensearch-project/OpenSearch/pull/14993))
28-
- Flat object field use IndexOrDocValuesQuery to optimize query ([#14383](https://github.com/opensearch-project/OpenSearch/issues/14383))
29-
- Add support for renaming aliases during snapshot restore ([#16292](https://github.com/opensearch-project/OpenSearch/pull/16292))
30-
- Add method to return dynamic SecureTransportParameters from SecureTransportSettingsProvider interface ([#16387](https://github.com/opensearch-project/OpenSearch/pull/16387))
31-
- URI path filtering support in cluster stats API ([#15938](https://github.com/opensearch-project/OpenSearch/pull/15938))
32-
- [Star Tree - Search] Add support for metric aggregations with/without term query ([15289](https://github.com/opensearch-project/OpenSearch/pull/15289))
339
- Add support for restoring from snapshot with search replicas ([#16111](https://github.com/opensearch-project/OpenSearch/pull/16111))
3410
- Add logic in master service to optimize performance and retain detailed logging for critical cluster operations. ([#14795](https://github.com/opensearch-project/OpenSearch/pull/14795))
3511
- Add Setting to adjust the primary constraint weights ([#16471](https://github.com/opensearch-project/OpenSearch/pull/16471))
12+
- Switch from `buildSrc/version.properties` to Gradle version catalog (`gradle/libs.versions.toml`) to enable dependabot to perform automated upgrades on common libs ([#16284](https://github.com/opensearch-project/OpenSearch/pull/16284))
3613

3714
### Dependencies
38-
- Bump `com.azure:azure-identity` from 1.13.0 to 1.13.2 ([#15578](https://github.com/opensearch-project/OpenSearch/pull/15578))
39-
- Bump `protobuf` from 3.22.3 to 3.25.4 ([#15684](https://github.com/opensearch-project/OpenSearch/pull/15684))
40-
- Bump `org.apache.logging.log4j:log4j-core` from 2.23.1 to 2.24.1 ([#15858](https://github.com/opensearch-project/OpenSearch/pull/15858), [#16134](https://github.com/opensearch-project/OpenSearch/pull/16134))
41-
- Bump `peter-evans/create-pull-request` from 6 to 7 ([#15863](https://github.com/opensearch-project/OpenSearch/pull/15863))
42-
- Bump `com.nimbusds:oauth2-oidc-sdk` from 11.9.1 to 11.19.1 ([#15862](https://github.com/opensearch-project/OpenSearch/pull/15862))
43-
- Bump `com.microsoft.azure:msal4j` from 1.17.0 to 1.17.2 ([#15945](https://github.com/opensearch-project/OpenSearch/pull/15945), [#16406](https://github.com/opensearch-project/OpenSearch/pull/16406))
44-
- Bump `ch.qos.logback:logback-core` from 1.5.6 to 1.5.10 ([#15946](https://github.com/opensearch-project/OpenSearch/pull/15946), [#16307](https://github.com/opensearch-project/OpenSearch/pull/16307))
45-
- Update protobuf from 3.25.4 to 3.25.5 ([#16011](https://github.com/opensearch-project/OpenSearch/pull/16011))
46-
- Bump `org.roaringbitmap:RoaringBitmap` from 1.2.1 to 1.3.0 ([#16040](https://github.com/opensearch-project/OpenSearch/pull/16040))
47-
- Bump `com.nimbusds:nimbus-jose-jwt` from 9.40 to 9.41.1 ([#16038](https://github.com/opensearch-project/OpenSearch/pull/16038))
48-
- Bump `actions/github-script` from 5 to 7 ([#16039](https://github.com/opensearch-project/OpenSearch/pull/16039))
49-
- Bump `dnsjava:dnsjava` from 3.6.1 to 3.6.2 ([#16041](https://github.com/opensearch-project/OpenSearch/pull/16041))
50-
- Bump `com.maxmind.geoip2:geoip2` from 4.2.0 to 4.2.1 ([#16042](https://github.com/opensearch-project/OpenSearch/pull/16042))
51-
- Bump `com.maxmind.db:maxmind-db` from 3.1.0 to 3.1.1 ([#16137](https://github.com/opensearch-project/OpenSearch/pull/16137))
52-
- Bump Apache lucene from 9.11.1 to 9.12.0 ([#15333](https://github.com/opensearch-project/OpenSearch/pull/15333))
53-
- Bump `com.azure:azure-core-http-netty` from 1.15.3 to 1.15.5 ([#16133](https://github.com/opensearch-project/OpenSearch/pull/16133), [#16311](https://github.com/opensearch-project/OpenSearch/pull/16311))
54-
- Bump `org.jline:jline` from 3.26.3 to 3.27.0 ([#16135](https://github.com/opensearch-project/OpenSearch/pull/16135))
55-
- Bump `netty` from 4.1.112.Final to 4.1.114.Final ([#16182](https://github.com/opensearch-project/OpenSearch/pull/16182))
56-
- Bump `com.google.api-client:google-api-client` from 2.2.0 to 2.7.0 ([#16216](https://github.com/opensearch-project/OpenSearch/pull/16216))
57-
- Bump `com.azure:azure-json` from 1.1.0 to 1.3.0 ([#16217](https://github.com/opensearch-project/OpenSearch/pull/16217))
58-
- Bump `io.grpc:grpc-api` from 1.57.2 to 1.68.0 ([#16213](https://github.com/opensearch-project/OpenSearch/pull/16213))
59-
- Bump `com.squareup.okio:okio` from 3.9.0 to 3.9.1 ([#16212](https://github.com/opensearch-project/OpenSearch/pull/16212))
60-
- Bump `me.champeau.gradle.japicmp` from 0.4.3 to 0.4.4 ([#16309](https://github.com/opensearch-project/OpenSearch/pull/16309))
61-
- Bump `com.google.oauth-client:google-oauth-client` from 1.35.0 to 1.36.0 ([#16306](https://github.com/opensearch-project/OpenSearch/pull/16306))
62-
- Bump `lycheeverse/lychee-action` from 1.10.0 to 2.0.2 ([#16310](https://github.com/opensearch-project/OpenSearch/pull/16310))
63-
- Bump `com.google.code.gson:gson` from 2.10.1 to 2.11.0 ([#16308](https://github.com/opensearch-project/OpenSearch/pull/16308))
6415
- Bump `com.google.cloud:google-cloud-core-http` from 2.23.0 to 2.47.0 ([#16504](https://github.com/opensearch-project/OpenSearch/pull/16504))
6516

6617
### Changed
67-
- Add support for docker compose v2 in TestFixturesPlugin ([#16049](https://github.com/opensearch-project/OpenSearch/pull/16049))
68-
- Remove identity-related feature flagged code from the RestController ([#15430](https://github.com/opensearch-project/OpenSearch/pull/15430))
69-
- Remove Identity FeatureFlag ([#16024](https://github.com/opensearch-project/OpenSearch/pull/16024))
70-
- Ensure RestHandler.Wrapper delegates all implementations to the wrapped handler ([#16154](https://github.com/opensearch-project/OpenSearch/pull/16154))
71-
- Enable coordinator search.request_stats_enabled by default ([#16290](https://github.com/opensearch-project/OpenSearch/pull/16290))
72-
- Code cleanup: Remove ApproximateIndexOrDocValuesQuery ([#16273](https://github.com/opensearch-project/OpenSearch/pull/16273))
73-
- Optimise clone operation for incremental full cluster snapshots ([#16296](https://github.com/opensearch-project/OpenSearch/pull/16296))
74-
- Update last seen cluster state in the commit phase ([#16215](https://github.com/opensearch-project/OpenSearch/pull/16215))
75-
- Make multiple settings dynamic for tuning on larger clusters([#16347](https://github.com/opensearch-project/OpenSearch/pull/16347))
7618

7719
### Deprecated
7820

7921
### Removed
8022

8123
### Fixed
82-
- Fix wildcard query containing escaped character ([#15737](https://github.com/opensearch-project/OpenSearch/pull/15737))
83-
- Fix case-insensitive query on wildcard field ([#15882](https://github.com/opensearch-project/OpenSearch/pull/15882))
84-
- Add validation for the search backpressure cancellation settings ([#15501](https://github.com/opensearch-project/OpenSearch/pull/15501))
85-
- Fix search_as_you_type not supporting multi-fields ([#15988](https://github.com/opensearch-project/OpenSearch/pull/15988))
86-
- Avoid infinite loop when `flat_object` field contains invalid token ([#15985](https://github.com/opensearch-project/OpenSearch/pull/15985))
87-
- Fix infinite loop in nested agg ([#15931](https://github.com/opensearch-project/OpenSearch/pull/15931))
88-
- Fix update settings with null replica not honoring cluster setting bug ([#14948](https://github.com/opensearch-project/OpenSearch/pull/14948))
89-
- Fix race condition in node-join and node-left ([#15521](https://github.com/opensearch-project/OpenSearch/pull/15521))
90-
- Streaming bulk request hangs ([#16158](https://github.com/opensearch-project/OpenSearch/pull/16158))
91-
- Fix warnings from SLF4J on startup when repository-s3 is installed ([#16194](https://github.com/opensearch-project/OpenSearch/pull/16194))
92-
- Fix protobuf-java leak through client library dependencies ([#16254](https://github.com/opensearch-project/OpenSearch/pull/16254))
9324
- Fix get index settings API doesn't show `number_of_routing_shards` setting when it was explicitly set ([#16294](https://github.com/opensearch-project/OpenSearch/pull/16294))
94-
- Fix multi-search with template doesn't return status code ([#16265](https://github.com/opensearch-project/OpenSearch/pull/16265))
95-
- [Streaming Indexing] Fix intermittent 'The bulk request must be terminated by a newline [\n]' failures [#16337](https://github.com/opensearch-project/OpenSearch/pull/16337))
96-
- Fix wrong default value when setting `index.number_of_routing_shards` to null on index creation ([#16331](https://github.com/opensearch-project/OpenSearch/pull/16331))
97-
- [Workload Management] Make query groups persistent across process restarts ([#16370](https://github.com/opensearch-project/OpenSearch/pull/16370))
98-
- [Workload Management] Enhance rejection mechanism in workload management ([#16417](https://github.com/opensearch-project/OpenSearch/pull/16417))
99-
- Fix inefficient Stream API call chains ending with count() ([#15386](https://github.com/opensearch-project/OpenSearch/pull/15386))
100-
- Fix array hashCode calculation in ResyncReplicationRequest ([#16378](https://github.com/opensearch-project/OpenSearch/pull/16378))
101-
- Fix missing fields in task index mapping to ensure proper task result storage ([#16201](https://github.com/opensearch-project/OpenSearch/pull/16201))
102-
- Fix typo super->sb in method toString() of RemoteStoreNodeAttribute ([#15362](https://github.com/opensearch-project/OpenSearch/pull/15362))
103-
- [Workload Management] Fixing Create/Update QueryGroup TransportActions to execute from non-cluster manager nodes ([16422](https://github.com/opensearch-project/OpenSearch/pull/16422))
104-
- Fix flaky test in `testApproximateRangeWithSizeOverDefault` by adjusting totalHits assertion logic ([#16434](https://github.com/opensearch-project/OpenSearch/pull/16434#pullrequestreview-2386999409))
10525
- Revert changes to upload remote state manifest using minimum codec version([#16403](https://github.com/opensearch-project/OpenSearch/pull/16403))
26+
- Ensure index templates are not applied to system indices ([#16418](https://github.com/opensearch-project/OpenSearch/pull/16418))
10627

10728
### Security
10829

109-
[Unreleased 2.x]: https://github.com/opensearch-project/OpenSearch/compare/2.17...2.x
30+
[Unreleased 2.x]: https://github.com/opensearch-project/OpenSearch/compare/2.18...2.x

‎buildSrc/build.gradle

+12-8
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ if (project == rootProject) {
5757
// we update the version property to reflect if we are building a snapshot or a release build
5858
// we write this back out below to load it in the Build.java which will be shown in rest main action
5959
// to indicate this being a snapshot build or a release build.
60-
Properties props = VersionPropertiesLoader.loadBuildSrcVersion(project.file('version.properties'))
60+
Properties props = VersionPropertiesLoader.loadBuildSrcVersion(project)
6161
version = props.getProperty("opensearch")
6262

6363
def generateVersionProperties = tasks.register("generateVersionProperties", WriteProperties) {
@@ -287,15 +287,19 @@ if (project != rootProject) {
287287
}
288288
}
289289

290-
// Define this here because we need it early.
290+
// Define this here because we need it early. It uses VersionCatalogsExtension to extract all versions
291+
// and converts to a Java Properties object
291292
class VersionPropertiesLoader {
292-
static Properties loadBuildSrcVersion(File input) throws IOException {
293+
static Properties loadBuildSrcVersion(Project project) throws IOException {
293294
Properties props = new Properties();
294-
InputStream is = new FileInputStream(input)
295-
try {
296-
props.load(is)
297-
} finally {
298-
is.close()
295+
296+
var catalogs = project.extensions.getByType(VersionCatalogsExtension)
297+
var libs = catalogs.named("libs")
298+
libs.getVersionAliases().forEach {
299+
libs.findVersion(it).ifPresent { v ->
300+
// Gradle replaces '_' with '.' so 'google_http_client' becomes 'google.http.client' instead
301+
props.setProperty(it.replaceAll("[.]", "_"), v.requiredVersion)
302+
}
299303
}
300304
loadBuildSrcVersion(props, System.getProperties())
301305
return props

‎buildSrc/settings.gradle

+8
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,11 @@
1010
*/
1111

1212
include 'reaper'
13+
14+
dependencyResolutionManagement {
15+
versionCatalogs {
16+
libs {
17+
from(files("../gradle/libs.versions.toml"))
18+
}
19+
}
20+
}

‎buildSrc/version.properties

+1-78
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,2 @@
1+
# Please use ../gradle/libs.versions.toml for dependency management
12
opensearch = 3.0.0
2-
lucene = 9.12.0
3-
4-
bundled_jdk_vendor = adoptium
5-
bundled_jdk = 23.0.1+11
6-
7-
# optional dependencies
8-
spatial4j = 0.7
9-
jts = 1.15.0
10-
jackson = 2.17.2
11-
jackson_databind = 2.17.2
12-
snakeyaml = 2.1
13-
icu4j = 75.1
14-
supercsv = 2.4.0
15-
log4j = 2.21.0
16-
slf4j = 1.7.36
17-
asm = 9.7
18-
jettison = 1.5.4
19-
woodstox = 6.4.0
20-
kotlin = 1.7.10
21-
antlr4 = 4.13.1
22-
guava = 32.1.1-jre
23-
protobuf = 3.25.5
24-
jakarta_annotation = 1.3.5
25-
google_http_client = 1.44.1
26-
tdigest = 3.3
27-
hdrhistogram = 2.2.2
28-
grpc = 1.68.0
29-
30-
# when updating the JNA version, also update the version in buildSrc/build.gradle
31-
jna = 5.13.0
32-
33-
netty = 4.1.114.Final
34-
joda = 2.12.7
35-
36-
# project reactor
37-
reactor_netty = 1.1.23
38-
reactor = 3.5.20
39-
40-
# client dependencies
41-
httpclient5 = 5.3.1
42-
httpcore5 = 5.2.5
43-
httpclient = 4.5.14
44-
httpcore = 4.4.16
45-
httpasyncclient = 4.1.5
46-
commonslogging = 1.2
47-
commonscodec = 1.16.1
48-
commonslang = 3.14.0
49-
commonscompress = 1.26.1
50-
commonsio = 2.16.0
51-
# plugin dependencies
52-
aws = 2.20.86
53-
reactivestreams = 1.0.4
54-
55-
# when updating this version, you need to ensure compatibility with:
56-
# - plugins/ingest-attachment (transitive dependency, check the upstream POM)
57-
# - distribution/tools/plugin-cli
58-
bouncycastle=1.78
59-
# test dependencies
60-
randomizedrunner = 2.7.1
61-
junit = 4.13.2
62-
hamcrest = 2.1
63-
mockito = 5.14.1
64-
objenesis = 3.2
65-
bytebuddy = 1.15.4
66-
67-
# benchmark dependencies
68-
jmh = 1.35
69-
70-
# compression
71-
zstd = 1.5.5-5
72-
73-
jzlib = 1.1.3
74-
75-
resteasy = 6.2.4.Final
76-
77-
# opentelemetry dependencies
78-
opentelemetry = 1.41.0
79-
opentelemetrysemconv = 1.27.0-alpha

‎gradle/libs.versions.toml

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
[versions]
2+
opensearch = "3.0.0"
3+
lucene = "9.12.0"
4+
5+
bundled_jdk_vendor = "adoptium"
6+
bundled_jdk = "23.0.1+11"
7+
8+
# optional dependencies
9+
spatial4j = "0.7"
10+
jts = "1.15.0"
11+
jackson = "2.17.2"
12+
jackson_databind = "2.17.2"
13+
snakeyaml = "2.1"
14+
icu4j = "75.1"
15+
supercsv = "2.4.0"
16+
log4j = "2.21.0"
17+
slf4j = "1.7.36"
18+
asm = "9.7"
19+
jettison = "1.5.4"
20+
woodstox = "6.4.0"
21+
kotlin = "1.7.10"
22+
antlr4 = "4.13.1"
23+
guava = "32.1.1-jre"
24+
protobuf = "3.25.5"
25+
jakarta_annotation = "1.3.5"
26+
google_http_client = "1.44.1"
27+
tdigest = "3.3"
28+
hdrhistogram = "2.2.2"
29+
grpc = "1.68.0"
30+
31+
# when updating the JNA version, also update the version in buildSrc/build.gradle
32+
jna = "5.13.0"
33+
34+
netty = "4.1.114.Final"
35+
joda = "2.12.7"
36+
37+
# project reactor
38+
reactor_netty = "1.1.23"
39+
reactor = "3.5.20"
40+
41+
# client dependencies
42+
httpclient5 = "5.3.1"
43+
httpcore5 = "5.2.5"
44+
httpclient = "4.5.14"
45+
httpcore = "4.4.16"
46+
httpasyncclient = "4.1.5"
47+
commonslogging = "1.2"
48+
commonscodec = "1.16.1"
49+
commonslang = "3.14.0"
50+
commonscompress = "1.26.1"
51+
commonsio = "2.16.0"
52+
# plugin dependencies
53+
aws = "2.20.86"
54+
reactivestreams = "1.0.4"
55+
56+
# when updating this version, you need to ensure compatibility with:
57+
# - plugins/ingest-attachment (transitive dependency, check the upstream POM)
58+
# - distribution/tools/plugin-cli
59+
bouncycastle="1.78"
60+
# test dependencies
61+
randomizedrunner = "2.7.1"
62+
junit = "4.13.2"
63+
hamcrest = "2.1"
64+
mockito = "5.14.1"
65+
objenesis = "3.2"
66+
bytebuddy = "1.15.4"
67+
68+
# benchmark dependencies
69+
jmh = "1.35"
70+
71+
# compression
72+
zstd = "1.5.5-5"
73+
74+
jzlib = "1.1.3"
75+
76+
resteasy = "6.2.4.Final"
77+
78+
# opentelemetry dependencies
79+
opentelemetry = "1.41.0"
80+
opentelemetrysemconv = "1.27.0-alpha"

0 commit comments

Comments
 (0)