Skip to content

Commit f2ff706

Browse files
committed
Merge remote-tracking branch 'upstream/main' into auto-date-skiplist
2 parents 6623782 + 0449ce8 commit f2ff706

File tree

71 files changed

+897
-137
lines changed

Some content is hidden

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

71 files changed

+897
-137
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
3535
- Support pull-based ingestion message mappers and raw payload support ([#19765](https://github.com/opensearch-project/OpenSearch/pull/19765))
3636
- Add search API tracker ([#18601](https://github.com/opensearch-project/OpenSearch/pull/18601))
3737
- Support dynamic consumer configuration update in pull-based ingestion ([#19963](https://github.com/opensearch-project/OpenSearch/pull/19963))
38+
- Cache the `StoredFieldsReader` for scroll query optimization ([#20112](https://github.com/opensearch-project/OpenSearch/pull/20112))
3839

3940
### Changed
4041
- Combining filter rewrite and skip list to optimize sub aggregation([#19573](https://github.com/opensearch-project/OpenSearch/pull/19573))
@@ -72,6 +73,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
7273
- Bump opensearch-protobufs dependency to 0.24.0 and update transport-grpc module compatibility ([#20059](https://github.com/opensearch-project/OpenSearch/pull/20059))
7374
- Refactor the ShardStats, WarmerStats and IndexingPressureStats class to use the Builder pattern instead of constructors ([#19966](https://github.com/opensearch-project/OpenSearch/pull/19966))
7475
- Add skiplist optimization to auto_date_histogram aggregation ([#20057](https://github.com/opensearch-project/OpenSearch/pull/20057))
76+
- Throw exceptions for currently unsupported GRPC request-side fields ([#20162](https://github.com/opensearch-project/OpenSearch/pull/20162))
7577

7678
### Fixed
7779
- Fix Allocation and Rebalance Constraints of WeightFunction are incorrectly reset ([#19012](https://github.com/opensearch-project/OpenSearch/pull/19012))
@@ -95,6 +97,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
9597
- Fix node bootstrap error when enable stream transport and remote cluster state ([#19948](https://github.com/opensearch-project/OpenSearch/pull/19948))
9698
- Keep track and release Reactor Netty 4 Transport accepted Http Channels during the Node shutdown ([#20106](https://github.com/opensearch-project/OpenSearch/pull/20106))
9799
- Fix deletion failure/error of unused index template; case when an index template matches a data stream but has a lower priority. ([#20102](https://github.com/opensearch-project/OpenSearch/pull/20102))
100+
- Fixed version incompatibility in remote state entities using bytestream for ser/de ([#20080](https://github.com/opensearch-project/OpenSearch/pull/20080))
98101
- Fix toBuilder method in EngineConfig to include mergedSegmentTransferTracker([#20105](https://github.com/opensearch-project/OpenSearch/pull/20105))
99102
- Fixed handling of property index in BulkRequest during deserialization ([#20132](https://github.com/opensearch-project/OpenSearch/pull/20132))
100103
- Fix negative CPU usage values in node stats ([#19120](https://github.com/opensearch-project/OpenSearch/issues/19120))
@@ -136,6 +139,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
136139
- Bump `com.google.api:api-common` from 2.52.0 to 2.55.1 ([#20083](https://github.com/opensearch-project/OpenSearch/pull/20083))
137140
- Bump `actions/upload-artifact` from 4 to 5 ([#20081](https://github.com/opensearch-project/OpenSearch/pull/20081))
138141
- Bump `com.nimbusds:nimbus-jose-jwt` from 10.5 to 10.6 ([#20084](https://github.com/opensearch-project/OpenSearch/pull/20084))
142+
- Bump `commons-logging` from 1.2 to 1.3.5 ([#20156](https://github.com/opensearch-project/OpenSearch/pull/20156))
139143

140144
### Deprecated
141145
- Deprecated existing constructors in ThreadPoolStats.Stats in favor of the new Builder ([#19317](https://github.com/opensearch-project/OpenSearch/pull/19317))

client/rest/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,16 @@ thirdPartyAudit {
112112
'org.apache.log4j.Level',
113113
'org.apache.log4j.Logger',
114114
'org.apache.log4j.Priority',
115+
'org.apache.logging.log4j.Level',
116+
'org.apache.logging.log4j.LogManager',
117+
'org.apache.logging.log4j.Marker',
118+
'org.apache.logging.log4j.MarkerManager',
119+
'org.apache.logging.log4j.spi.AbstractLoggerAdapter',
120+
'org.apache.logging.log4j.spi.ExtendedLogger',
121+
'org.apache.logging.log4j.spi.LoggerAdapter',
122+
'org.apache.logging.log4j.spi.LoggerContext',
123+
'org.apache.logging.log4j.spi.LoggerContextFactory',
124+
'org.apache.logging.log4j.util.StackLocatorUtil',
115125
//commons-logging provided dependencies
116126
'javax.servlet.ServletContextEvent',
117127
'javax.servlet.ServletContextListener',

client/rest/licenses/commons-logging-1.2.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+
a3fcc5d3c29b2b03433aa2d2f2d2c1b1638924a1

client/sniffer/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,16 @@ thirdPartyAudit.ignoreMissingClasses(
101101
'org.apache.log4j.Level',
102102
'org.apache.log4j.Logger',
103103
'org.apache.log4j.Priority',
104+
'org.apache.logging.log4j.Level',
105+
'org.apache.logging.log4j.LogManager',
106+
'org.apache.logging.log4j.Marker',
107+
'org.apache.logging.log4j.MarkerManager',
108+
'org.apache.logging.log4j.spi.AbstractLoggerAdapter',
109+
'org.apache.logging.log4j.spi.ExtendedLogger',
110+
'org.apache.logging.log4j.spi.LoggerAdapter',
111+
'org.apache.logging.log4j.spi.LoggerContext',
112+
'org.apache.logging.log4j.spi.LoggerContextFactory',
113+
'org.apache.logging.log4j.util.StackLocatorUtil',
104114
//commons-logging provided dependencies
105115
'javax.servlet.ServletContextEvent',
106116
'javax.servlet.ServletContextListener'

client/sniffer/licenses/commons-logging-1.2.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+
a3fcc5d3c29b2b03433aa2d2f2d2c1b1638924a1

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ httpcore5 = "5.3.4"
4949
httpclient = "4.5.14"
5050
httpcore = "4.4.16"
5151
httpasyncclient = "4.1.5"
52-
commonslogging = "1.2"
52+
commonslogging = "1.3.5"
5353
commonscodec = "1.18.0"
5454
commonslang = "3.18.0"
5555
commonscompress = "1.28.0"

modules/reindex/src/test/java/org/opensearch/index/reindex/RetryTests.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232

3333
package org.opensearch.index.reindex;
3434

35+
import org.apache.lucene.tests.util.LuceneTestCase;
3536
import org.opensearch.action.admin.cluster.node.info.NodeInfo;
3637
import org.opensearch.action.admin.cluster.node.tasks.list.ListTasksResponse;
3738
import org.opensearch.action.bulk.BackoffPolicy;
@@ -68,7 +69,15 @@
6869
/**
6970
* Integration test for bulk retry behavior. Useful because retrying relies on the way that the
7071
* rest of OpenSearch throws exceptions and unit tests won't verify that.
72+
*
73+
* <p>{@code @SuppressCodecs("*")} is needed because we cache StoredFieldsReader instances
74+
* across scroll batches for sequential access. Different batches may run on different threads
75+
* (but never concurrently). Lucene's AssertingStoredFieldsFormat enforces thread affinity
76+
* that rejects this valid sequential cross-thread usage.
77+
*
78+
* @see org.opensearch.search.internal.ScrollContext#getCachedSequentialReader(Object)
7179
*/
80+
@LuceneTestCase.SuppressCodecs("*")
7281
public class RetryTests extends OpenSearchIntegTestCase {
7382

7483
private static final int DOC_COUNT = 20;

modules/transport-grpc/src/main/java/org/opensearch/transport/grpc/proto/request/document/bulk/BulkRequestProtoUtils.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,16 @@ public static org.opensearch.action.bulk.BulkRequest prepareRequest(BulkRequest
8585
)
8686
);
8787

88+
// Type is a deprecated field according to the spec, thus no plans to support it
89+
if (request.hasType()) {
90+
throw new UnsupportedOperationException("type param is not supported");
91+
}
92+
93+
// TODO support global_params
94+
if (request.hasGlobalParams()) {
95+
throw new UnsupportedOperationException("global_params param is not supported yet");
96+
}
97+
8898
return bulkRequest;
8999
}
90100
}

0 commit comments

Comments
 (0)