Skip to content

Commit 00ef4ba

Browse files
committed
Merge branch 'main' into searchable-system-index
2 parents 929243d + 1673e74 commit 00ef4ba

File tree

631 files changed

+1592
-883
lines changed

Some content is hidden

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

631 files changed

+1592
-883
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1+
registries:
2+
gradle-maven:
3+
type: maven-repository
4+
url: https://repo1.maven.org/maven2
15
updates:
26
- directory: /
37
open-pull-requests-limit: 1
48
package-ecosystem: gradle
9+
registries:
10+
- gradle-maven
511
schedule:
612
interval: weekly
713
labels:

.github/workflows/links.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v4
1414
- name: lychee Link Checker
1515
id: lychee
16-
uses: lycheeverse/lychee-action@v2.2.0
16+
uses: lycheeverse/lychee-action@v2.3.0
1717
with:
1818
args: --accept=200,403,429 --exclude-mail **/*.html **/*.md **/*.txt **/*.json --exclude-file .lychee.excludes
1919
fail: true

CHANGELOG-3.0.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1515
- Allow to pass the list settings through environment variables (like [], ["a", "b", "c"], ...) ([#10625](https://github.com/opensearch-project/OpenSearch/pull/10625))
1616
- Views, simplify data access and manipulation by providing a virtual layer over one or more indices ([#11957](https://github.com/opensearch-project/OpenSearch/pull/11957))
1717
- Added pull-based Ingestion (APIs, for ingestion source, a Kafka plugin, and IngestionEngine that pulls data from the ingestion source) ([#16958](https://github.com/opensearch-project/OpenSearch/pull/16958))
18+
- Added ConfigurationUtils to core for the ease of configuration parsing [#17223](https://github.com/opensearch-project/OpenSearch/pull/17223)
1819

1920
### Dependencies
2021
- Update Apache Lucene to 10.1.0 ([#16366](https://github.com/opensearch-project/OpenSearch/pull/16366))
@@ -29,9 +30,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
2930
- Add task completion count in search backpressure stats API ([#10028](https://github.com/opensearch-project/OpenSearch/pull/10028/))
3031
- Deprecate CamelCase `PathHierarchy` tokenizer name in favor to lowercase `path_hierarchy` ([#10894](https://github.com/opensearch-project/OpenSearch/pull/10894))
3132
- Breaking change: Do not request "search_pipelines" metrics by default in NodesInfoRequest ([#12497](https://github.com/opensearch-project/OpenSearch/pull/12497))
33+
- Use simpler matching logic for source fields when explicit field names (no wildcards or dot-paths) are specified ([#17160](https://github.com/opensearch-project/OpenSearch/pull/17160))
3234
- Refactor `:libs` module `bootstrap` package to eliminate top level split packages for JPMS support ([#17117](https://github.com/opensearch-project/OpenSearch/pull/17117))
3335
- Refactor the codebase to eliminate top level split packages for JPMS support ([#17153](https://github.com/opensearch-project/OpenSearch/pull/17153)
3436
- Refactor `:server` module `org.apacge.lucene` package to eliminate top level split packages for JPMS support ([#17241](https://github.com/opensearch-project/OpenSearch/pull/17241))
37+
- Refactor the `:server` module `org.opensearch.client` to `org.opensearch.transport.client` to eliminate top level split packages for JPMS support ([#17272](https://github.com/opensearch-project/OpenSearch/pull/17272))
3538

3639
### Deprecated
3740

CHANGELOG.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4141
- Propagate the sourceIncludes and excludes fields from fetchSourceContext to FieldsVisitor. ([#17080](https://github.com/opensearch-project/OpenSearch/pull/17080))
4242
- [Star Tree] [Search] Resolving Date histogram with metric aggregation using star-tree ([#16674](https://github.com/opensearch-project/OpenSearch/pull/16674))
4343
- [Star Tree] [Search] Extensible design to support different query and field types ([#17137](https://github.com/opensearch-project/OpenSearch/pull/17137))
44+
- Improve performace of NumericTermAggregation by avoiding unnecessary sorting([#17252](https://github.com/opensearch-project/OpenSearch/pull/17252))
4445
- Add a flag to set whether a system index is readable on SystemIndexDescriptor ([#17296](https://github.com/opensearch-project/OpenSearch/pull/17296))
4546

4647
### Dependencies
@@ -52,7 +53,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5253
- Bump `org.apache.hadoop:hadoop-minicluster` from 3.4.0 to 3.4.1 ([#16550](https://github.com/opensearch-project/OpenSearch/pull/16550))
5354
- Bump `org.apache.xmlbeans:xmlbeans` from 5.2.1 to 5.3.0 ([#16612](https://github.com/opensearch-project/OpenSearch/pull/16612), [#16854](https://github.com/opensearch-project/OpenSearch/pull/16854))
5455
- Bump `com.nimbusds:nimbus-jose-jwt` from 9.41.1 to 10.0.1 ([#16611](https://github.com/opensearch-project/OpenSearch/pull/16611), [#16807](https://github.com/opensearch-project/OpenSearch/pull/16807), [#17011](https://github.com/opensearch-project/OpenSearch/pull/17011))
55-
- Bump `lycheeverse/lychee-action` from 2.0.2 to 2.2.0 ([#16610](https://github.com/opensearch-project/OpenSearch/pull/16610), [#16897](https://github.com/opensearch-project/OpenSearch/pull/16897))
56+
- Bump `lycheeverse/lychee-action` from 2.0.2 to 2.3.0 ([#16610](https://github.com/opensearch-project/OpenSearch/pull/16610), [#16897](https://github.com/opensearch-project/OpenSearch/pull/16897), [#17262](https://github.com/opensearch-project/OpenSearch/pull/17262))
5657
- Bump `me.champeau.gradle.japicmp` from 0.4.4 to 0.4.5 ([#16614](https://github.com/opensearch-project/OpenSearch/pull/16614))
5758
- Bump `mockito` from 5.14.1 to 5.14.2, `objenesis` from 3.2 to 3.3 and `bytebuddy` from 1.15.4 to 1.15.10 ([#16655](https://github.com/opensearch-project/OpenSearch/pull/16655))
5859
- Bump `Netty` from 4.1.114.Final to 4.1.117.Final ([#16661](https://github.com/opensearch-project/OpenSearch/pull/16661), [#17041](https://github.com/opensearch-project/OpenSearch/pull/17041))
@@ -81,15 +82,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
8182
- Bump `dnsjava:dnsjava` from 3.6.2 to 3.6.3 ([#17231](https://github.com/opensearch-project/OpenSearch/pull/17231))
8283
- Bump `com.google.code.gson:gson` from 2.11.0 to 2.12.1 ([#17229](https://github.com/opensearch-project/OpenSearch/pull/17229))
8384
- Bump `org.jruby.joni:joni` from 2.2.1 to 2.2.3 ([#17136](https://github.com/opensearch-project/OpenSearch/pull/17136))
85+
- Bump `org.apache.ant:ant` from 1.10.14 to 1.10.15 ([#17288](https://github.com/opensearch-project/OpenSearch/pull/17288))
8486

8587
### Changed
8688
- Indexed IP field supports `terms_query` with more than 1025 IP masks [#16391](https://github.com/opensearch-project/OpenSearch/pull/16391)
8789
- Make entries for dependencies from server/build.gradle to gradle version catalog ([#16707](https://github.com/opensearch-project/OpenSearch/pull/16707))
8890
- Sliced search only fans out to shards matched by the selected slice, reducing open search contexts ([#16771](https://github.com/opensearch-project/OpenSearch/pull/16771))
8991
- Allow extended plugins to be optional ([#16909](https://github.com/opensearch-project/OpenSearch/pull/16909))
9092
- Use the correct type to widen the sort fields when merging top docs ([#16881](https://github.com/opensearch-project/OpenSearch/pull/16881))
91-
- Limit reader writer separation to remote store enabled clusters [#16760](https://github.com/opensearch-project/OpenSearch/pull/16760)
92-
- Optimize innerhits query performance [#16937](https://github.com/opensearch-project/OpenSearch/pull/16937)
93+
- Limit reader writer separation to remote store enabled clusters ([#16760](https://github.com/opensearch-project/OpenSearch/pull/16760)
94+
- Optimize innerhits query performance ([#16937](https://github.com/opensearch-project/OpenSearch/pull/16937)
95+
- Convert transport-reactor-netty4 to use gradle version catalog [#17233](https://github.com/opensearch-project/OpenSearch/pull/17233))
9396

9497
### Deprecated
9598
- Performing update operation with default pipeline or final pipeline is deprecated ([#16712](https://github.com/opensearch-project/OpenSearch/pull/16712))

buildSrc/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ dependencies {
104104

105105
api "commons-codec:commons-codec:${props.getProperty('commonscodec')}"
106106
api "org.apache.commons:commons-compress:${props.getProperty('commonscompress')}"
107-
api 'org.apache.ant:ant:1.10.14'
107+
api 'org.apache.ant:ant:1.10.15'
108108
api 'com.netflix.nebula:gradle-extra-configurations-plugin:10.0.0'
109109
api 'com.netflix.nebula:nebula-publishing-plugin:21.1.0'
110110
api 'com.netflix.nebula:gradle-info-plugin:12.1.6'
@@ -120,7 +120,7 @@ dependencies {
120120
api 'org.apache.maven:maven-model:3.9.6'
121121
api 'com.networknt:json-schema-validator:1.2.0'
122122
api 'org.jruby.jcodings:jcodings:1.0.58'
123-
api 'org.jruby.joni:joni:2.2.1'
123+
api 'org.jruby.joni:joni:2.2.3'
124124
api "com.fasterxml.jackson.core:jackson-databind:${props.getProperty('jackson_databind')}"
125125
api "org.ajoberstar.grgit:grgit-core:5.2.1"
126126

client/client-benchmark-noop-api-plugin/src/main/java/org/opensearch/plugin/noop/action/bulk/RestNoopBulkAction.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@
3838
import org.opensearch.action.bulk.BulkShardRequest;
3939
import org.opensearch.action.support.ActiveShardCount;
4040
import org.opensearch.action.update.UpdateResponse;
41-
import org.opensearch.client.Requests;
42-
import org.opensearch.client.node.NodeClient;
4341
import org.opensearch.core.index.shard.ShardId;
4442
import org.opensearch.core.xcontent.XContentBuilder;
4543
import org.opensearch.rest.BaseRestHandler;
@@ -48,6 +46,8 @@
4846
import org.opensearch.rest.RestRequest;
4947
import org.opensearch.rest.RestResponse;
5048
import org.opensearch.rest.action.RestBuilderListener;
49+
import org.opensearch.transport.client.Requests;
50+
import org.opensearch.transport.client.node.NodeClient;
5151

5252
import java.io.IOException;
5353
import java.util.List;

client/client-benchmark-noop-api-plugin/src/main/java/org/opensearch/plugin/noop/action/search/RestNoopSearchAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
package org.opensearch.plugin.noop.action.search;
3333

3434
import org.opensearch.action.search.SearchRequest;
35-
import org.opensearch.client.node.NodeClient;
3635
import org.opensearch.rest.BaseRestHandler;
3736
import org.opensearch.rest.RestRequest;
3837
import org.opensearch.rest.action.RestStatusToXContentListener;
38+
import org.opensearch.transport.client.node.NodeClient;
3939

4040
import java.util.List;
4141

client/rest-high-level/src/main/java/org/opensearch/client/RequestConverters.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ static Request bulk(BulkRequest bulkRequest) throws IOException {
180180
}
181181

182182
if (bulkContentType == null) {
183-
bulkContentType = MediaTypeRegistry.JSON;
183+
bulkContentType = REQUEST_BODY_CONTENT_TYPE;
184184
}
185185

186186
final byte separator = bulkContentType.xContent().streamSeparator();
@@ -424,7 +424,7 @@ static Request update(UpdateRequest updateRequest) throws IOException {
424424
}
425425
}
426426
if (mediaType == null) {
427-
mediaType = Requests.INDEX_CONTENT_TYPE;
427+
mediaType = REQUEST_BODY_CONTENT_TYPE;
428428
}
429429
request.addParameters(parameters.asMap());
430430
request.setEntity(createEntity(updateRequest, mediaType));
@@ -1256,7 +1256,7 @@ Params withWaitForEvents(Priority waitForEvents) {
12561256
*/
12571257
static MediaType enforceSameContentType(IndexRequest indexRequest, @Nullable MediaType mediaType) {
12581258
MediaType requestContentType = indexRequest.getContentType();
1259-
if (requestContentType != MediaTypeRegistry.JSON && requestContentType != MediaTypeRegistry.fromFormat("smile")) {
1259+
if (requestContentType != REQUEST_BODY_CONTENT_TYPE && requestContentType != MediaTypeRegistry.fromFormat("smile")) {
12601260
throw new IllegalArgumentException(
12611261
"Unsupported content-type found for request with content-type ["
12621262
+ requestContentType

client/rest-high-level/src/test/java/org/opensearch/client/core/tasks/GetTaskResponseTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232

3333
package org.opensearch.client.core.tasks;
3434

35-
import org.opensearch.client.Requests;
3635
import org.opensearch.client.tasks.GetTaskResponse;
3736
import org.opensearch.core.common.bytes.BytesReference;
3837
import org.opensearch.core.tasks.TaskId;
3938
import org.opensearch.core.tasks.resourcetracker.TaskResourceStats;
4039
import org.opensearch.core.tasks.resourcetracker.TaskResourceUsage;
4140
import org.opensearch.core.tasks.resourcetracker.TaskThreadUsage;
41+
import org.opensearch.core.xcontent.MediaTypeRegistry;
4242
import org.opensearch.core.xcontent.ToXContent;
4343
import org.opensearch.core.xcontent.XContentBuilder;
4444
import org.opensearch.tasks.RawTaskStatus;
@@ -125,7 +125,7 @@ private static TaskId randomTaskId() {
125125
}
126126

127127
private static RawTaskStatus randomRawTaskStatus() {
128-
try (XContentBuilder builder = XContentBuilder.builder(Requests.INDEX_CONTENT_TYPE.xContent())) {
128+
try (XContentBuilder builder = XContentBuilder.builder(MediaTypeRegistry.JSON.xContent())) {
129129
builder.startObject();
130130
int fields = between(0, 10);
131131
for (int f = 0; f < fields; f++) {

gradle/libs.versions.toml

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ jzlib = { group = "com.jcraft", name = "jzlib", version.ref = "jzlib" }
9595
log4japi = { group = "org.apache.logging.log4j", name = "log4j-api", version.ref = "log4j" }
9696
log4jjul = { group = "org.apache.logging.log4j", name = "log4j-jul", version.ref = "log4j" }
9797
log4jcore = { group = "org.apache.logging.log4j", name = "log4j-core", version.ref = "log4j" }
98+
log4jslf4jimpl = { group = "org.apache.logging.log4j", name = "log4j-slf4j-impl", version.ref = "log4j" }
9899
lucene-core = { group = "org.apache.lucene", name = "lucene-core", version.ref = "lucene" }
99100
lucene-analysis-common = { group = "org.apache.lucene", name = "lucene-analysis-common", version.ref = "lucene" }
100101
lucene-backward-codecs = { group = "org.apache.lucene", name = "lucene-backward-codecs", version.ref = "lucene" }
@@ -109,9 +110,24 @@ lucene-sandbox = { group = "org.apache.lucene", name = "lucene-sandbox", version
109110
lucene-spatial-extras = { group = "org.apache.lucene", name = "lucene-spatial-extras", version.ref = "lucene" }
110111
lucene-spatial3d = { group = "org.apache.lucene", name = "lucene-spatial3d", version.ref = "lucene" }
111112
lucene-suggest = { group = "org.apache.lucene", name = "lucene-suggest", version.ref = "lucene" }
113+
netty-buffer = { group = "io.netty", name = "netty-buffer", version.ref = "netty" }
114+
netty-codec = { group = "io.netty", name = "netty-codec", version.ref = "netty" }
115+
netty-codec-dns = { group = "io.netty", name = "netty-codec-dns", version.ref = "netty" }
116+
netty-codec-http = { group = "io.netty", name = "netty-codec-http", version.ref = "netty" }
117+
netty-codec-http2 = { group = "io.netty", name = "netty-codec-http2", version.ref = "netty" }
118+
netty-common = { group = "io.netty", name = "netty-common", version.ref = "netty" }
119+
netty-handler = { group = "io.netty", name = "netty-handler", version.ref = "netty" }
120+
netty-resolver-dns = { group = "io.netty", name = "netty-resolver-dns", version.ref = "netty" }
121+
netty-resolver = { group = "io.netty", name = "netty-resolver", version.ref = "netty" }
122+
netty-transport = { group = "io.netty", name = "netty-transport", version.ref = "netty" }
123+
netty-transport-native-unix-common = { group = "io.netty", name = "netty-transport-native-unix-common", version.ref = "netty" }
112124
protobuf = { group = "com.google.protobuf", name = "protobuf-java", version.ref = "protobuf" }
113-
reactivestreams = { group = "io.projectreactor", name = "reactor-core", version.ref = "reactor" }
114-
reactorcore = { group = "org.reactivestreams", name = "reactive-streams", version.ref = "reactivestreams" }
125+
reactivestreams = { group = "org.reactivestreams", name = "reactive-streams", version.ref = "reactivestreams" }
126+
reactor-core = { group = "io.projectreactor", name = "reactor-core", version.ref = "reactor" }
127+
reactor-test = { group = "io.projectreactor", name = "reactor-test", version.ref = "reactor" }
128+
reactor-netty-core = { group = "io.projectreactor.netty", name = "reactor-netty-core", version.ref = "reactor_netty" }
129+
reactor-netty-http = { group = "io.projectreactor.netty", name = "reactor-netty-http", version.ref = "reactor_netty" }
130+
115131
roaringbitmap = { group = "org.roaringbitmap", name = "RoaringBitmap", version.ref = "roaringbitmap" }
116132
spatial4j = { group = "org.locationtech.spatial4j", name = "spatial4j", version.ref = "spatial4j" }
117133
tdigest = { group = "com.tdunning", name = "t-digest", version.ref = "tdigest" }
@@ -133,3 +149,22 @@ lucene = [
133149
"lucene-spatial3d",
134150
"lucene-suggest"
135151
]
152+
153+
netty = [
154+
"netty-buffer",
155+
"netty-codec",
156+
"netty-codec-dns",
157+
"netty-codec-http",
158+
"netty-codec-http2",
159+
"netty-common",
160+
"netty-handler",
161+
"netty-resolver-dns",
162+
"netty-resolver",
163+
"netty-transport",
164+
"netty-transport-native-unix-common"
165+
]
166+
167+
reactornetty = [
168+
"reactor-netty-core",
169+
"reactor-netty-http"
170+
]

0 commit comments

Comments
 (0)