Skip to content

Commit 534a3de

Browse files
authored
Merge branch 'main' into decommission-api/pr
2 parents 4aa3790 + 3b49c0e commit 534a3de

File tree

12 files changed

+23
-18
lines changed

12 files changed

+23
-18
lines changed

CHANGELOG.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
2020
- Add BWC version 2.3.1 ([#4513](https://github.com/opensearch-project/OpenSearch/pull/4513))
2121
- [Segment Replication] Add snapshot and restore tests for segment replication feature ([#3993](https://github.com/opensearch-project/OpenSearch/pull/3993))
2222
- Added missing javadocs for `:example-plugins` modules ([#4540](https://github.com/opensearch-project/OpenSearch/pull/4540))
23+
- Add missing Javadoc tag descriptions in unit tests ([#4629](https://github.com/opensearch-project/OpenSearch/pull/4629))
2324
### Dependencies
2425
- Bumps `log4j-core` from 2.18.0 to 2.19.0
26+
- Bumps `reactor-netty-http` from 1.0.18 to 1.0.23
27+
- Bumps `jettison` from 1.5.0 to 1.5.1
2528

2629

2730
### Dependencies
@@ -49,12 +52,15 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
4952
- Unmute test RelocationIT.testRelocationWhileIndexingRandom ([#4580](https://github.com/opensearch-project/OpenSearch/pull/4580))
5053
- Add DecommissionService and helper to execute awareness attribute decommissioning ([#4084](https://github.com/opensearch-project/OpenSearch/pull/4084))
5154
- Further simplification of the ZIP publication implementation ([#4360](https://github.com/opensearch-project/OpenSearch/pull/4360))
55+
- Relax visibility of the HTTP_CHANNEL_KEY and HTTP_SERVER_CHANNEL_KEY to make it possible for the plugins to access associated Netty4HttpChannel / Netty4HttpServerChannel instance ([#4638](https://github.com/opensearch-project/OpenSearch/pull/4638))
5256
- Add APIs (GET/PUT) to decommission awareness attribute ([#4261](https://github.com/opensearch-project/OpenSearch/pull/4261))
5357

58+
5459
### Deprecated
5560

5661
### Removed
5762
- Remove deprecated code to add node name into log pattern of log4j property file ([#4568](https://github.com/opensearch-project/OpenSearch/pull/4568))
63+
- Unused object and import within TransportClusterAllocationExplainAction ([#4639](https://github.com/opensearch-project/OpenSearch/pull/4639))
5864

5965
### Fixed
6066
- `opensearch-service.bat start` and `opensearch-service.bat manager` failing to run ([#4289](https://github.com/opensearch-project/OpenSearch/pull/4289))
@@ -74,13 +80,14 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
7480
- [Segment Replication] Update flaky testOnNewCheckpointFromNewPrimaryCancelOngoingReplication unit test ([#4414](https://github.com/opensearch-project/OpenSearch/pull/4414))
7581
- Fixed the `_cat/shards/10_basic.yml` test cases fix.
7682
- [Segment Replication] Fix timeout issue by calculating time needed to process getSegmentFiles ([#4426](https://github.com/opensearch-project/OpenSearch/pull/4426))
77-
- [Bug]: gradle check failing with java heap OutOfMemoryError (([#4328](https://github.com/opensearch-project/OpenSearch/
83+
- [Bug]: gradle check failing with java heap OutOfMemoryError ([#4328](https://github.com/opensearch-project/OpenSearch/))
7884
- `opensearch.bat` fails to execute when install path includes spaces ([#4362](https://github.com/opensearch-project/OpenSearch/pull/4362))
7985
- Getting security exception due to access denied 'java.lang.RuntimePermission' 'accessDeclaredMembers' when trying to get snapshot with S3 IRSA ([#4469](https://github.com/opensearch-project/OpenSearch/pull/4469))
8086
- Fixed flaky test `ResourceAwareTasksTests.testTaskIdPersistsInThreadContext` ([#4484](https://github.com/opensearch-project/OpenSearch/pull/4484))
8187
- Fixed the ignore_malformed setting to also ignore objects ([#4494](https://github.com/opensearch-project/OpenSearch/pull/4494))
8288
- [Segment Replication] Ignore lock file when testing cleanupAndPreserveLatestCommitPoint ([#4544](https://github.com/opensearch-project/OpenSearch/pull/4544))
8389
- Updated jackson to 2.13.4 and snakeyml to 1.32 ([#4556](https://github.com/opensearch-project/OpenSearch/pull/4556))
90+
- [Bug]: Fixed invalid location of JDK dependency for arm64 architecture([#4613](https://github.com/opensearch-project/OpenSearch/pull/4613))
8491

8592
### Security
8693
- CVE-2022-25857 org.yaml:snakeyaml DOS vulnerability ([#4341](https://github.com/opensearch-project/OpenSearch/pull/4341))

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public void setArchitecture(final String architecture) {
128128
"unknown architecture [" + jdkArchitecture + "] for jdk [" + name + "], must be one of " + ALLOWED_ARCHITECTURES
129129
);
130130
}
131-
this.architecture.set(architecture);
131+
this.architecture.set(jdkArchitecture);
132132
}
133133

134134
public String getBaseVersion() {

modules/geo/src/test/java/org/opensearch/geo/search/aggregations/metrics/GeoBoundsGeoShapeAggregatorTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ protected List<SearchPlugin> getSearchPlugins() {
6868
/**
6969
* Testing Empty aggregator results.
7070
*
71-
* @throws Exception
71+
* @throws Exception if an error occurs accessing the index
7272
*/
7373
public void testEmpty() throws Exception {
7474
try (Directory dir = newDirectory(); RandomIndexWriter w = new RandomIndexWriter(random(), dir)) {
@@ -93,7 +93,7 @@ public void testEmpty() throws Exception {
9393
/**
9494
* Testing GeoBoundAggregator for random shapes which are indexed.
9595
*
96-
* @throws Exception
96+
* @throws Exception if an error occurs accessing the index
9797
*/
9898
public void testRandom() throws Exception {
9999
final int numDocs = randomIntBetween(50, 100);

modules/transport-netty4/src/main/java/org/opensearch/http/netty4/Netty4HttpServerTransport.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,10 @@ public ChannelHandler configureServerChannelHandler() {
332332
return new HttpChannelHandler(this, handlingSettings);
333333
}
334334

335-
static final AttributeKey<Netty4HttpChannel> HTTP_CHANNEL_KEY = AttributeKey.newInstance("opensearch-http-channel");
336-
static final AttributeKey<Netty4HttpServerChannel> HTTP_SERVER_CHANNEL_KEY = AttributeKey.newInstance("opensearch-http-server-channel");
335+
protected static final AttributeKey<Netty4HttpChannel> HTTP_CHANNEL_KEY = AttributeKey.newInstance("opensearch-http-channel");
336+
protected static final AttributeKey<Netty4HttpServerChannel> HTTP_SERVER_CHANNEL_KEY = AttributeKey.newInstance(
337+
"opensearch-http-server-channel"
338+
);
337339

338340
protected static class HttpChannelHandler extends ChannelInitializer<Channel> {
339341

plugins/discovery-azure-classic/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ dependencies {
5959
api "com.sun.jersey:jersey-client:${versions.jersey}"
6060
api "com.sun.jersey:jersey-core:${versions.jersey}"
6161
api "com.sun.jersey:jersey-json:${versions.jersey}"
62-
api 'org.codehaus.jettison:jettison:1.5.0'
62+
api 'org.codehaus.jettison:jettison:1.5.1'
6363
api 'com.sun.xml.bind:jaxb-impl:2.2.3-1'
6464

6565
// HACK: javax.xml.bind was removed from default modules in java 9, so we pull the api in here,

plugins/discovery-azure-classic/licenses/jettison-1.5.0.jar.sha1

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
d8918f348f234f5046bd39ea1ed9fc91deac402f

plugins/repository-azure/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ dependencies {
5959
api 'io.projectreactor:reactor-core:3.4.23'
6060
api 'io.projectreactor.netty:reactor-netty:1.0.18'
6161
api 'io.projectreactor.netty:reactor-netty-core:1.0.22'
62-
api 'io.projectreactor.netty:reactor-netty-http:1.0.18'
62+
api 'io.projectreactor.netty:reactor-netty-http:1.0.23'
6363
api "org.slf4j:slf4j-api:${versions.slf4j}"
6464
api "com.fasterxml.jackson.core:jackson-annotations:${versions.jackson}"
6565
api "com.fasterxml.jackson.core:jackson-databind:${versions.jackson_databind}"

plugins/repository-azure/licenses/reactor-netty-http-1.0.18.jar.sha1

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
63932f2b675f451135986b3723a12d45e818b170

server/src/main/java/org/opensearch/action/admin/cluster/allocation/TransportClusterAllocationExplainAction.java

-4
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
import org.opensearch.cluster.routing.allocation.RoutingAllocation;
5151
import org.opensearch.cluster.routing.allocation.RoutingAllocation.DebugMode;
5252
import org.opensearch.cluster.routing.allocation.ShardAllocationDecision;
53-
import org.opensearch.cluster.routing.allocation.allocator.ShardsAllocator;
5453
import org.opensearch.cluster.routing.allocation.decider.AllocationDeciders;
5554
import org.opensearch.cluster.service.ClusterService;
5655
import org.opensearch.common.inject.Inject;
@@ -77,7 +76,6 @@ public class TransportClusterAllocationExplainAction extends TransportClusterMan
7776
private final ClusterInfoService clusterInfoService;
7877
private final SnapshotsInfoService snapshotsInfoService;
7978
private final AllocationDeciders allocationDeciders;
80-
private final ShardsAllocator shardAllocator;
8179
private final AllocationService allocationService;
8280

8381
@Inject
@@ -90,7 +88,6 @@ public TransportClusterAllocationExplainAction(
9088
ClusterInfoService clusterInfoService,
9189
SnapshotsInfoService snapshotsInfoService,
9290
AllocationDeciders allocationDeciders,
93-
ShardsAllocator shardAllocator,
9491
AllocationService allocationService
9592
) {
9693
super(
@@ -105,7 +102,6 @@ public TransportClusterAllocationExplainAction(
105102
this.clusterInfoService = clusterInfoService;
106103
this.snapshotsInfoService = snapshotsInfoService;
107104
this.allocationDeciders = allocationDeciders;
108-
this.shardAllocator = shardAllocator;
109105
this.allocationService = allocationService;
110106
}
111107

server/src/test/java/org/opensearch/indices/replication/SegmentReplicationTargetTests.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ public void onFailure(Exception e) {
381381

382382
/**
383383
* This tests ensures that new files generated on primary (due to delete operation) are not considered missing on replica
384-
* @throws IOException
384+
* @throws IOException if an indexing operation fails or segment replication fails
385385
*/
386386
public void test_MissingFiles_NotCausingFailure() throws IOException {
387387
int docCount = 1 + random().nextInt(10);
@@ -435,9 +435,9 @@ public void onFailure(Exception e) {
435435
/**
436436
* Generates a list of Store.MetadataSnapshot with two elements where second snapshot has extra files due to delete
437437
* operation. A list of snapshots is returned so that identical files have same checksum.
438-
* @param docCount
439-
* @return
440-
* @throws IOException
438+
* @param docCount the number of documents to index in the first snapshot
439+
* @return a list of Store.MetadataSnapshot with two elements where second snapshot has extra files due to delete
440+
* @throws IOException if one of the indexing operations fails
441441
*/
442442
private List<Store.MetadataSnapshot> generateStoreMetadataSnapshot(int docCount) throws IOException {
443443
List<Document> docList = new ArrayList<>();

0 commit comments

Comments
 (0)