Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebase throttling feature branch #4713

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
a3fb105
[BUG] Running "opensearch-service.bat start" and "opensearch-service.…
burck1 Aug 24, 2022
0bf6b2f
Removing dead code in RecoveryTarget. (#4278)
mch2 Aug 24, 2022
5dd7947
Update the head ref to changelog verifier (#4296)
kotwanikunal Aug 24, 2022
1bfabed
Add 2.x version to CHANGELOG (#4297)
kotwanikunal Aug 25, 2022
1dbb63a
Do not fail replica shard due to primary closure (#4133)
andrross Aug 26, 2022
c62cecb
Some dependency updates (#4308)
reta Aug 26, 2022
65f966e
Restore using the class ClusterInfoRequest and ClusterInfoRequestBuil…
Aug 26, 2022
7ea6e88
[BUG] Create logs directory before running OpenSearch on Windows (#4305)
burck1 Aug 29, 2022
cd961f3
Use RemoteSegmentStoreDirectory instead of RemoteDirectory (#4240)
sachinpkale Aug 29, 2022
7fe5830
ZIP publication groupId value is configurable (#4156)
lukas-vlcek Aug 29, 2022
f4e041e
[Segment Replication] Add timeout on Mockito.verify to reduce flakyne…
dreamer-89 Aug 29, 2022
beb09af
Adding @dreamer-89 to Opensearch maintainers. (#4342)
kartg Aug 30, 2022
4bccdbe
[CVE] Update snakeyaml dependency (#4341)
adnapibar Aug 30, 2022
82bda89
Fixed commit workflow for dependabot PR helper (#4331)
kotwanikunal Aug 30, 2022
48d6869
Add release notes for patch release 1.3.5 (#4343)
adnapibar Aug 30, 2022
f16ea9c
Add release notes for patch release 2.2.1 (#4344)
adnapibar Aug 30, 2022
4f65ef5
Add label configuration for dependabot PRs (#4348)
kotwanikunal Aug 31, 2022
d72861f
Support for HTTP/2 (server-side) (#3847)
reta Aug 31, 2022
c28221e
Fix token usage for changelog helper (#4351)
kotwanikunal Aug 31, 2022
100120a
Revert "Fix token usage for changelog helper (#4351)" (#4361)
kotwanikunal Aug 31, 2022
19d1a2b
Segment Replication - Implement segment replication event cancellatio…
mch2 Aug 31, 2022
4a6e937
Bug fixes for dependabot changelog verifier (#4364)
kotwanikunal Sep 1, 2022
689a2c4
Add changes for Create PIT and Delete PIT rest layer and rest high le…
bharath-techie Sep 1, 2022
bd11c69
Bump com.diffplug.spotless from 6.9.1 to 6.10.0 (#4319)
dependabot[bot] Sep 1, 2022
236f2f6
Update to Netty 4.1.80.Final (#4359)
reta Sep 1, 2022
5c3cc93
Bump xmlbeans from 5.1.0 to 5.1.1 in /plugins/ingest-attachment (#4354)
dependabot[bot] Sep 1, 2022
715da84
Fix randomized test failure NRTReplicationEngineTests.testUpdateSegme…
adnapibar Sep 1, 2022
70d911c
[AUTO] [main] Added bwc version 2.2.2. (#4383)
opensearch-trigger-bot[bot] Sep 2, 2022
c885686
[Segment Replication] Bump segment infos counter before commit during…
dreamer-89 Sep 2, 2022
b206e98
[Segment Replication] Add check to cancel ongoing replication with ol…
dreamer-89 Sep 2, 2022
0c10674
Adding support for labels on version bump PRs, skip label support for…
kotwanikunal Sep 2, 2022
fab2a12
[Segment Replication] Extend FileChunkWriter to allow cancel on trans…
dreamer-89 Sep 3, 2022
4331d2a
Added RestLayer Changes for PIT stats (#4217)
ajaymovva Sep 4, 2022
4ed0995
Modified cat shards test for pit stats (#4408)
ajaymovva Sep 6, 2022
ff2e4bf
[Remote Store] Add index specific setting for remote repository (#4253)
sachinpkale Sep 6, 2022
b0e1f6a
[Semgnet Replication] Update flaky testOnNewCheckpointFromNewPrimaryC…
dreamer-89 Sep 6, 2022
f97cb4b
Segment Replication - Fix NoSuchFileException errors caused when comp…
mch2 Sep 6, 2022
1889d96
Bump org.gradle.test-retry from 1.4.0 to 1.4.1 (#4411)
dependabot[bot] Sep 6, 2022
fb64a85
Revert to Netty 4.1.79.Final (#4428)
cwperks Sep 6, 2022
bff9d0f
[Segment Replication] Fix timeout issue by calculating time needed to…
Rishikesh1159 Sep 7, 2022
ccf575a
[Bug]: gradle check failing with java heap OutOfMemoryError (#4328)
reta Sep 7, 2022
c1a1f1a
Bump azure-core-http-netty from 1.12.0 to 1.12.4 in /plugins/reposito…
dependabot[bot] Sep 7, 2022
ce6c6a8
Bugfix: Allow opensearch.bat file and opensearch-env.bat files to run…
mwilkinson-imo Sep 7, 2022
3ef0046
[Segment Replication] - Update replicas to commit SegmentInfos instea…
mch2 Sep 7, 2022
dac99d5
Bump reactor-netty-core from 1.0.19 to 1.0.22 in /plugins/repository-…
dependabot[bot] Sep 7, 2022
e305e1e
Add bwcVersion 2.4.0 (#4455)
dreamer-89 Sep 8, 2022
517c19c
add support for s390x architecture (#4001)
pantovad Sep 8, 2022
54364a5
2.3.0 release notes (#4457) (#4464)
dreamer-89 Sep 9, 2022
5dc3d2e
Add getHistoryOperationsFromTranslog method to fetch the history snap…
ankitkala Sep 13, 2022
763a89f
Fixed flaky test: ResourceAwareTasksTests.testTaskIdPersistsInThreadC…
ketanv3 Sep 13, 2022
8366ea3
Getting security exception due to access denied 'java.lang.RuntimePer…
reta Sep 13, 2022
29153fd
[Javadoc] add missing javadocs for :distribution:tools modules (#4483)
dbwiddis Sep 13, 2022
51a529f
Bump reactive-streams from 1.0.3 to 1.0.4 in /plugins/repository-azur…
dependabot[bot] Sep 13, 2022
45c9597
Ignore all malformed objects when ignore_malformed is true (#4494)
hauck-jvsh Sep 15, 2022
72e6801
[AUTO] [main] Added bwc version 2.3.1. (#4513)
opensearch-trigger-bot[bot] Sep 15, 2022
f73a870
[Segment Replication] Add snapshot and restore tests for segment repl…
dreamer-89 Sep 16, 2022
57a4aed
[Remote Store] Change behaviour in replica recovery for remote transl…
ashking94 Sep 17, 2022
4657716
Weighted round-robin scheduling policy for shard coordination traffic…
anshu1106 Sep 19, 2022
fa07cd9
[Javadoc] add missing javadocs for :example-plugin modules (#4540)
dbwiddis Sep 19, 2022
56162a9
Add GeoBounds aggregation on GeoShape field type.(#3980) (#4266)
navneet1v Sep 19, 2022
658f7a6
Updates jackson and snakeyml dependencies (#4556)
owaiskazi19 Sep 19, 2022
f248394
Bump com.diffplug.spotless from 6.10.0 to 6.11.0 (#4547)
dependabot[bot] Sep 20, 2022
4ea3231
Bump reactor-core from 3.4.18 to 3.4.23 in /plugins/repository-azure …
dependabot[bot] Sep 20, 2022
4d264b6
Bump jempbox from 1.8.16 to 1.8.17 in /plugins/ingest-attachment (#4550)
dependabot[bot] Sep 20, 2022
2c27dfd
Bump log4j-core from 2.18.0 to 2.19.0 in /buildSrc/src/testKit/thirdP…
dependabot[bot] Sep 20, 2022
7ebb2af
Ignore lock file when testing cleanupAndPreserveLatestCommitPoint (#4…
dbwiddis Sep 21, 2022
3ca749f
Remove deprecated code to add node name into log pattern of log4j pro…
Sep 22, 2022
08f2232
Unmute RelocationIT.testRelocationWhileIndexingRandom. (#4580)
mch2 Sep 23, 2022
751d069
Add DecommissionService and helper to execute awareness attribute dec…
imRishN Sep 25, 2022
bb47419
Added rest layer changes for List all PITs and PIT segments (#4388)
bharath-techie Sep 25, 2022
9b2202a
Add PUT api to update shard routing weights (#4272)
anshu1106 Sep 27, 2022
ab6849f
Further simplification of the ZIP publication implementation (#4360)
lukas-vlcek Sep 27, 2022
ebbddd3
Add missing Javadoc tag descriptions in unit tests (#4629)
msfroh Sep 29, 2022
cb5e16d
Bump reactor-netty-http from 1.0.18 to 1.0.23 in /plugins/repository-…
dependabot[bot] Sep 29, 2022
7157724
Bump jettison from 1.5.0 to 1.5.1 in /plugins/discovery-azure-classic…
dependabot[bot] Sep 29, 2022
2c0277b
Fix invalid search location of JDK for arm64 (#4613)
heemin32 Sep 29, 2022
2fe6f9a
Remove unused object and import from TransportClusterAllocationExplai…
kotwanikunal Sep 29, 2022
3b49c0e
Relax visibility of the HTTP_CHANNEL_KEY and HTTP_SERVER_CHANNEL_KEY …
reta Sep 30, 2022
551c2d8
Bumping hadoop-hdfs version to 3.3.4 (#4644)
saratvemulapalli Sep 30, 2022
54f8fdd
Bugfix/496 rollover alias with filters (#4499)
stevanbz Sep 30, 2022
ff2d5be
Load the deprecated master role in a dedicated method instead of in s…
Sep 30, 2022
4b08d38
Add APIs (GET/PUT) to decommission awareness attribute (#4261)
imRishN Oct 2, 2022
76c372f
Adding check to make sure checkpoint is not processed when a shard's …
Rishikesh1159 Oct 3, 2022
9e5ea46
Bump azure-storage-common from 12.18.0 to 12.18.1 in /plugins/reposit…
dependabot[bot] Oct 3, 2022
b074c0f
Bump forbiddenapis from 3.3 to 3.4 in /buildSrc/src/testKit/thirdPart…
dependabot[bot] Oct 3, 2022
c20446d
Fixed the SnapshotsInProgress error during index deletion (#4570)
xuezhou25 Oct 3, 2022
69f421f
Update to Apache Lucene 9.4.0 (#4661)
reta Oct 3, 2022
a17692d
Fixed day of year defaulting for round up parser (#4627)
Vishalks Oct 3, 2022
0c80a7a
Fix PIT flaky tests (#4632)
bharath-techie Oct 4, 2022
7b7ca98
Add getter for path field in NestedQueryBuilder (#4636)
psmagin Oct 4, 2022
41f2b9a
Pre-commit checks now check for missing javadoc, and the Gradle check…
yeohbraddy Oct 4, 2022
89aaa9e
Backport Apache Lucene version change for 2.4.0 (#4677)
reta Oct 4, 2022
e403799
Attempt to fix Github workflow for Gradle Check job (#4679)
reta Oct 4, 2022
05d11b2
Adding precommit support for Windows (#4676)
saratvemulapalli Oct 4, 2022
ada2467
Adding precommit support for MacOS (darwin) (#4682)
saratvemulapalli Oct 5, 2022
e189179
Fix flaky DecommissionControllerTests.testTimesOut (#4683)
andrross Oct 5, 2022
3941226
Include Windows OS in Bootstrap initializeNatives() check for definit…
dbwiddis Oct 5, 2022
e354461
Add release notes for 1.3.6 (#4681)
Rishikesh1159 Oct 5, 2022
3186935
Service Layer changes for Recommission API (#4320)
pranikum Oct 6, 2022
563122e
Add GET api to get shard routing weights (#4275)
anshu1106 Oct 6, 2022
ed359f0
Fix new race condition in DecommissionControllerTests (#4688)
andrross Oct 6, 2022
a2f95ce
Fixing SearchStats (de)serialization (#4697)
reta Oct 6, 2022
f5ea1a4
Fixed misunderstanding message 'No OpenSearchException found' when de…
xuezhou25 Oct 7, 2022
b1bc4d9
Update GeoGrid base class access modifier to support extensibility (#…
VijayanB Oct 7, 2022
ef45809
[Remove] LegacyESVersion.V_7_0_* and V_7_1_* constants (#2768)
nknize Oct 7, 2022
588db38
Fixing Gradle warnings associated with publishPluginZipPublicationToX…
reta Oct 7, 2022
ef50f78
Bump gson from 2.9.0 to 2.9.1 in /test/fixtures/hdfs-fixture (#4066)
dependabot[bot] Oct 7, 2022
109319e
Always auto release the flood stage block (#4703)
nknize Oct 7, 2022
2e4b27b
Controlling discovery for decommissioned nodes (#4590)
imRishN Oct 7, 2022
fe3994c
[Remove] LegacyESVersion.V_7_2_* and V_7_3_* constants (#4702)
nknize Oct 7, 2022
77cff55
[Remove] LegacyESVersion.V_7_4_* and V_7_5_* constants (#4704)
nknize Oct 7, 2022
7cdffe2
Merge remote-tracking branch 'upstream/main' into rebase-throttling-0…
dhwanilpatel Oct 8, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .github/workflows/gradle-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
- 'dependabot/**'
pull_request_target:
types: [opened, synchronize, reopened]
workflow_run:
workflows: ["Gradle Precommit"]
types:
- completed

jobs:
gradle-check:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/precommit.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Gradle Precommit
on: [pull_request]

jobs:
precommit:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
Expand All @@ -13,4 +16,4 @@ jobs:
distribution: adopt
- name: Run Gradle
run: |
./gradlew precommit --parallel
./gradlew javadoc precommit --parallel
50 changes: 49 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# CHANGELOG

Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

## [Unreleased]
### Dependencies
- Bumps `gson` from 2.9.0 to 2.9.1

### Added

- Add support for s390x architecture ([#4001](https://github.com/opensearch-project/OpenSearch/pull/4001))
- Github workflow for changelog verification ([#4085](https://github.com/opensearch-project/OpenSearch/pull/4085))
- Point in time rest layer changes for create and delete PIT API ([#4064](https://github.com/opensearch-project/OpenSearch/pull/4064))
Expand All @@ -21,10 +26,19 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- [Segment Replication] Add snapshot and restore tests for segment replication feature ([#3993](https://github.com/opensearch-project/OpenSearch/pull/3993))
- Added missing javadocs for `:example-plugins` modules ([#4540](https://github.com/opensearch-project/OpenSearch/pull/4540))
- Add missing Javadoc tag descriptions in unit tests ([#4629](https://github.com/opensearch-project/OpenSearch/pull/4629))
- Add getter for path field in NestedQueryBuilder ([#4636](https://github.com/opensearch-project/OpenSearch/pull/4636))
- Added precommit support for windows ([#4676](https://github.com/opensearch-project/OpenSearch/pull/4676))
- Added release notes for 1.3.6 ([#4681](https://github.com/opensearch-project/OpenSearch/pull/4681))
- Added precommit support for MacOS ([#4682](https://github.com/opensearch-project/OpenSearch/pull/4682))
- Recommission API changes for service layer ([#4320](https://github.com/opensearch-project/OpenSearch/pull/4320))
- Update GeoGrid base class access modifier to support extensibility ([#4572](https://github.com/opensearch-project/OpenSearch/pull/4572))

### Dependencies
- Bumps `log4j-core` from 2.18.0 to 2.19.0
- Bumps `reactor-netty-http` from 1.0.18 to 1.0.23
- Bumps `jettison` from 1.5.0 to 1.5.1
- Bumps `azure-storage-common` from 12.18.0 to 12.18.1
- Bumps `forbiddenapis` from 3.3 to 3.4


### Dependencies
Expand All @@ -38,8 +52,11 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Bumps `com.diffplug.spotless` from 6.10.0 to 6.11.0 ([#4547](https://github.com/opensearch-project/OpenSearch/pull/4547))
- Bumps `reactor-core` from 3.4.18 to 3.4.23 ([#4548](https://github.com/opensearch-project/OpenSearch/pull/4548))
- Bumps `jempbox` from 1.8.16 to 1.8.17 ([#4550](https://github.com/opensearch-project/OpenSearch/pull/4550))
- Bumps `hadoop-hdfs` from 3.3.3 to 3.3.4 ([#4644](https://github.com/opensearch-project/OpenSearch/pull/4644))
- Bumps `jna` from 5.11.0 to 5.12.1 ([#4656](https://github.com/opensearch-project/OpenSearch/pull/4656))

### Changed

- Dependency updates (httpcore, mockito, slf4j, httpasyncclient, commons-codec) ([#4308](https://github.com/opensearch-project/OpenSearch/pull/4308))
- Use RemoteSegmentStoreDirectory instead of RemoteDirectory ([#4240](https://github.com/opensearch-project/OpenSearch/pull/4240))
- Plugin ZIP publication groupId value is configurable ([#4156](https://github.com/opensearch-project/OpenSearch/pull/4156))
Expand All @@ -49,18 +66,31 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- [CCR] Add getHistoryOperationsFromTranslog method to fetch the history snapshot from translogs ([#3948](https://github.com/opensearch-project/OpenSearch/pull/3948))
- [Remote Store] Change behaviour in replica recovery for remote translog enabled indices ([#4318](https://github.com/opensearch-project/OpenSearch/pull/4318))
- PUT api for weighted shard routing ([#4272](https://github.com/opensearch-project/OpenSearch/pull/4272))
- GET api for weighted shard routing([#4275](https://github.com/opensearch-project/OpenSearch/pull/4275/))
- Unmute test RelocationIT.testRelocationWhileIndexingRandom ([#4580](https://github.com/opensearch-project/OpenSearch/pull/4580))
- Add DecommissionService and helper to execute awareness attribute decommissioning ([#4084](https://github.com/opensearch-project/OpenSearch/pull/4084))
- Further simplification of the ZIP publication implementation ([#4360](https://github.com/opensearch-project/OpenSearch/pull/4360))
- 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))
- Load the deprecated master role in a dedicated method instead of in setAdditionalRoles() ([#4582](https://github.com/opensearch-project/OpenSearch/pull/4582))
- Include Windows OS in Bootstrap initializeNatives() check for definitelyRunningAsRoot() ([#4656](https://github.com/opensearch-project/OpenSearch/pull/4656))
- Add APIs (GET/PUT) to decommission awareness attribute ([#4261](https://github.com/opensearch-project/OpenSearch/pull/4261))
- Improve Gradle pre-commit checks to pre-empt Jenkins build ([#4660](https://github.com/opensearch-project/OpenSearch/pull/4660))
- Update to Apache Lucene 9.4.0 ([#4661](https://github.com/opensearch-project/OpenSearch/pull/4661))
- Controlling discovery for decommissioned nodes ([#4590](https://github.com/opensearch-project/OpenSearch/pull/4590))
- Backport Apache Lucene version change for 2.4.0 ([#4677](https://github.com/opensearch-project/OpenSearch/pull/4677))

### Deprecated

### Removed
- Remove deprecated code to add node name into log pattern of log4j property file ([#4568](https://github.com/opensearch-project/OpenSearch/pull/4568))
- Unused object and import within TransportClusterAllocationExplainAction ([#4639](https://github.com/opensearch-project/OpenSearch/pull/4639))
- Remove LegacyESVersion.V_7_0_* and V_7_1_* Constants ([#2768](https://https://github.com/opensearch-project/OpenSearch/pull/2768))
- Remove LegacyESVersion.V_7_2_ and V_7_3_ Constants ([#4702](https://github.com/opensearch-project/OpenSearch/pull/4702))
- Always auto release the flood stage block ([#4703](https://github.com/opensearch-project/OpenSearch/pull/4703))
- Remove LegacyESVersion.V_7_4_ and V_7_5_ Constants ([#4704](https://github.com/opensearch-project/OpenSearch/pull/4704))

### Fixed

- `opensearch-service.bat start` and `opensearch-service.bat manager` failing to run ([#4289](https://github.com/opensearch-project/OpenSearch/pull/4289))
- PR reference to checkout code for changelog verifier ([#4296](https://github.com/opensearch-project/OpenSearch/pull/4296))
- `opensearch.bat` and `opensearch-service.bat install` failing to run, missing logs directory ([#4305](https://github.com/opensearch-project/OpenSearch/pull/4305))
Expand All @@ -85,13 +115,31 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Fixed the ignore_malformed setting to also ignore objects ([#4494](https://github.com/opensearch-project/OpenSearch/pull/4494))
- [Segment Replication] Ignore lock file when testing cleanupAndPreserveLatestCommitPoint ([#4544](https://github.com/opensearch-project/OpenSearch/pull/4544))
- Updated jackson to 2.13.4 and snakeyml to 1.32 ([#4556](https://github.com/opensearch-project/OpenSearch/pull/4556))
- Fixing PIT flaky tests ([4632](https://github.com/opensearch-project/OpenSearch/pull/4632))
- Fixed day of year defaulting for round up parser ([#4627](https://github.com/opensearch-project/OpenSearch/pull/4627))
- Fixed the SnapshotsInProgress error during index deletion ([#4570](https://github.com/opensearch-project/OpenSearch/pull/4570))
- [Segment Replication] Adding check to make sure checkpoint is not processed when a shard's shard routing is primary ([#4630](https://github.com/opensearch-project/OpenSearch/pull/4630))
- [Bug]: Fixed invalid location of JDK dependency for arm64 architecture([#4613](https://github.com/opensearch-project/OpenSearch/pull/4613))
- [Bug]: Alias filter lost after rollover ([#4499](https://github.com/opensearch-project/OpenSearch/pull/4499))
- Fixed the SnapshotsInProgress error during index deletion ([#4570](https://github.com/opensearch-project/OpenSearch/pull/4570))
- [Segment Replication] Adding check to make sure checkpoint is not processed when a shard's shard routing is primary ([#4630](https://github.com/opensearch-project/OpenSearch/pull/4630))
- [Bug]: Fixed invalid location of JDK dependency for arm64 architecture([#4613](https://github.com/opensearch-project/OpenSearch/pull/4613))
- [Bug]: Alias filter lost after rollover ([#4499](https://github.com/opensearch-project/OpenSearch/pull/4499))
- Fixed misunderstanding message "No OpenSearchException found" when detailed_error disabled ([#4669](https://github.com/opensearch-project/OpenSearch/pull/4669))
- Attempt to fix Github workflow for Gradle Check job ([#4679](https://github.com/opensearch-project/OpenSearch/pull/4679))
- Fix flaky DecommissionControllerTests.testTimesOut ([4683](https://github.com/opensearch-project/OpenSearch/pull/4683))
- Fix new race condition in DecommissionControllerTests ([4688](https://github.com/opensearch-project/OpenSearch/pull/4688))
- Fix SearchStats (de)serialization (caused by https://github.com/opensearch-project/OpenSearch/pull/4616) ([#4697](https://github.com/opensearch-project/OpenSearch/pull/4697))
- Fixing Gradle warnings associated with publishPluginZipPublicationToXxx tasks ([#4696](https://github.com/opensearch-project/OpenSearch/pull/4696))

### Security

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

## [2.x]

### Added

- Github workflow for changelog verification ([#4085](https://github.com/opensearch-project/OpenSearch/pull/4085))
- Label configuration for dependabot PRs ([#4348](https://github.com/opensearch-project/OpenSearch/pull/4348))
- Added RestLayer Changes for PIT stats ([#4217](https://github.com/opensearch-project/OpenSearch/pull/4217))
Expand All @@ -107,11 +155,11 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
### Removed

### Fixed

- PR reference to checkout code for changelog verifier ([#4296](https://github.com/opensearch-project/OpenSearch/pull/4296))
- Commit workflow for dependabot changelog helper ([#4331](https://github.com/opensearch-project/OpenSearch/pull/4331))

### Security


[Unreleased]: https://github.com/opensearch-project/OpenSearch/compare/2.2.0...HEAD
[2.x]: https://github.com/opensearch-project/OpenSearch/compare/2.2.0...2.x
2 changes: 1 addition & 1 deletion buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ dependencies {
api 'com.netflix.nebula:gradle-info-plugin:11.3.3'
api 'org.apache.rat:apache-rat:0.13'
api 'commons-io:commons-io:2.7'
api "net.java.dev.jna:jna:5.11.0"
api "net.java.dev.jna:jna:5.12.1"
api 'gradle.plugin.com.github.johnrengelman:shadow:7.1.2'
api 'org.jdom:jdom2:2.0.6.1'
api 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public String call() throws Exception {
return String.format(
"%s/distributions/%s-%s.pom",
project.getBuildDir(),
getArchivesBaseName(project),
pomTask.getName().toLowerCase().contains("zip") ? project.getName() : getArchivesBaseName(project),
project.getVersion()
);
}
Expand Down Expand Up @@ -130,7 +130,6 @@ public String call() throws Exception {
publication.getPom().withXml(PublishPlugin::addScmInfo);

if (!publication.getName().toLowerCase().contains("zip")) {

// have to defer this until archivesBaseName is set
project.afterEvaluate(p -> publication.setArtifactId(getArchivesBaseName(project)));

Expand All @@ -139,6 +138,8 @@ public String call() throws Exception {
publication.artifact(project.getTasks().getByName("sourcesJar"));
publication.artifact(project.getTasks().getByName("javadocJar"));
}
} else {
project.afterEvaluate(p -> publication.setArtifactId(project.getName()));
}

generatePomTask.configure(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@
import org.gradle.api.publish.maven.MavenPublication;

import java.nio.file.Path;
import java.util.Set;
import java.util.stream.Collectors;

import org.gradle.api.Task;
import org.gradle.api.publish.maven.plugins.MavenPublishPlugin;

public class Publish implements Plugin<Project> {

// public final static String PLUGIN_ZIP_PUBLISH_POM_TASK = "generatePomFileForPluginZipPublication";
public final static String PUBLICATION_NAME = "pluginZip";
public final static String STAGING_REPO = "zipStaging";
public final static String LOCAL_STAGING_REPO_PATH = "/build/local-staging-repo";
Expand Down Expand Up @@ -67,10 +69,15 @@ public void apply(Project project) {
if (validatePluginZipPom != null) {
validatePluginZipPom.dependsOn("generatePomFileForNebulaPublication");
}
Task publishPluginZipPublicationToZipStagingRepository = project.getTasks()
.findByName("publishPluginZipPublicationToZipStagingRepository");
if (publishPluginZipPublicationToZipStagingRepository != null) {
publishPluginZipPublicationToZipStagingRepository.dependsOn("generatePomFileForNebulaPublication");

// There are number of tasks prefixed by 'publishPluginZipPublication', f.e.:
// publishPluginZipPublicationToZipStagingRepository, publishPluginZipPublicationToMavenLocal
final Set<Task> publishPluginZipPublicationToTasks = project.getTasks()
.stream()
.filter(t -> t.getName().startsWith("publishPluginZipPublicationTo"))
.collect(Collectors.toSet());
if (!publishPluginZipPublicationToTasks.isEmpty()) {
publishPluginZipPublicationToTasks.forEach(t -> t.dependsOn("generatePomFileForNebulaPublication"));
}
} else {
project.getLogger()
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/testKit/thirdPartyAudit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ repositories {
}

dependencies {
forbiddenApisCliJar 'de.thetaphi:forbiddenapis:3.3'
forbiddenApisCliJar 'de.thetaphi:forbiddenapis:3.4'
jdkJarHell 'org.opensearch:opensearch-core:current'
compileOnly "org.${project.properties.compileOnlyGroup}:${project.properties.compileOnlyVersion}"
implementation "org.${project.properties.compileGroup}:${project.properties.compileVersion}"
Expand Down
4 changes: 2 additions & 2 deletions buildSrc/version.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opensearch = 3.0.0
lucene = 9.4.0-snapshot-ddf0d0a
lucene = 9.4.0

bundled_jdk_vendor = adoptium
bundled_jdk = 17.0.4+8
Expand All @@ -19,7 +19,7 @@ slf4j = 1.7.36
asm = 9.3

# when updating the JNA version, also update the version in buildSrc/build.gradle
jna = 5.5.0
jna = 5.12.1

netty = 4.1.79.Final
joda = 2.10.13
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;

Expand Down Expand Up @@ -71,7 +72,7 @@ public void testCreateAndDeletePit() throws IOException {
assertTrue(deletePitResponse.getDeletePitResults().get(0).getPitId().equals(createPitResponse.getId()));
}

public void testDeleteAllAndListAllPits() throws IOException {
public void testDeleteAllAndListAllPits() throws IOException, InterruptedException {
CreatePitRequest pitRequest = new CreatePitRequest(new TimeValue(1, TimeUnit.DAYS), true, "index");
CreatePitResponse pitResponse = execute(pitRequest, highLevelClient()::createPit, highLevelClient()::createPitAsync);
CreatePitResponse pitResponse1 = execute(pitRequest, highLevelClient()::createPit, highLevelClient()::createPitAsync);
Expand All @@ -90,16 +91,19 @@ public void testDeleteAllAndListAllPits() throws IOException {
List<String> pits = getAllPitResponse.getPitInfos().stream().map(r -> r.getPitId()).collect(Collectors.toList());
assertTrue(pits.contains(pitResponse.getId()));
assertTrue(pits.contains(pitResponse1.getId()));
CountDownLatch countDownLatch = new CountDownLatch(1);
ActionListener<DeletePitResponse> deletePitListener = new ActionListener<>() {
@Override
public void onResponse(DeletePitResponse response) {
countDownLatch.countDown();
for (DeletePitInfo deletePitInfo : response.getDeletePitResults()) {
assertTrue(deletePitInfo.isSuccessful());
}
}

@Override
public void onFailure(Exception e) {
countDownLatch.countDown();
if (!(e instanceof OpenSearchStatusException)) {
throw new AssertionError("Delete all failed");
}
Expand All @@ -123,6 +127,7 @@ public void onFailure(Exception e) {
};
highLevelClient().getAllPitsAsync(RequestOptions.DEFAULT, getPitsListener);
highLevelClient().deleteAllPitsAsync(RequestOptions.DEFAULT, deletePitListener);
assertTrue(countDownLatch.await(10, TimeUnit.SECONDS));
// validate no pits case
getAllPitResponse = highLevelClient().getAllPits(RequestOptions.DEFAULT);
assertTrue(getAllPitResponse.getPitInfos().size() == 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,10 @@ public void testApiNamingConventions() throws Exception {
"nodes.reload_secure_settings",
"search_shards",
"remote_store.restore",
"cluster.put_weighted_routing", };
"cluster.put_weighted_routing",
"cluster.get_weighted_routing",
"cluster.put_decommission_awareness",
"cluster.get_decommission_awareness", };
List<String> booleanReturnMethods = Arrays.asList("security.enable_user", "security.disable_user", "security.change_password");
Set<String> deprecatedMethods = new HashSet<>();
deprecatedMethods.add("indices.force_merge");
Expand Down
Loading