Skip to content

Commit

Permalink
Merge branch 'main' into feature/wrr-put-api
Browse files Browse the repository at this point in the history
  • Loading branch information
anshu1106 authored Sep 2, 2022
2 parents e12d247 + 70d911c commit 3dd1d1a
Show file tree
Hide file tree
Showing 58 changed files with 74 additions and 32 deletions.
1 change: 1 addition & 0 deletions .ci/bwcVersions
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ BWC_VERSION:
- "2.1.1"
- "2.2.0"
- "2.2.1"
- "2.2.2"
- "2.3.0"
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,19 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Added release notes for 2.2.1 ([#4344](https://github.com/opensearch-project/OpenSearch/pull/4344))
- Label configuration for dependabot PRs ([#4348](https://github.com/opensearch-project/OpenSearch/pull/4348))
- Support for HTTP/2 (server-side) ([#3847](https://github.com/opensearch-project/OpenSearch/pull/3847))
- BWC version 2.2.2 ([#4383](https://github.com/opensearch-project/OpenSearch/pull/4383))

### Dependencies
- Bumps `com.diffplug.spotless` from 6.9.1 to 6.10.0
- Bumps `xmlbeans` from 5.1.0 to 5.1.1

### 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))
- Weighted round-robin scheduling policy for shard coordination traffic ([#4241](https://github.com/opensearch-project/OpenSearch/pull/4241))
- PUT api to update weights for weighted round-robin scheduling ([#4272](https://github.com/opensearch-project/OpenSearch/pull/4272))
- Update to Netty 4.1.80.Final ([#4359](https://github.com/opensearch-project/OpenSearch/pull/4359))

### Deprecated

Expand All @@ -32,6 +38,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Commit workflow for dependabot changelog helper ([#4331](https://github.com/opensearch-project/OpenSearch/pull/4331))
- Fixed cancellation of segment replication events ([#4225](https://github.com/opensearch-project/OpenSearch/pull/4225))
- Bugs for dependabot changelog verifier workflow ([#4364](https://github.com/opensearch-project/OpenSearch/pull/4364))
- Fix flaky random test `NRTReplicationEngineTests.testUpdateSegments` ([#4352](https://github.com/opensearch-project/OpenSearch/pull/4352))

### Security
- CVE-2022-25857 org.yaml:snakeyaml DOS vulnerability ([#4341](https://github.com/opensearch-project/OpenSearch/pull/4341))
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ plugins {
id 'lifecycle-base'
id 'opensearch.docker-support'
id 'opensearch.global-build-info'
id "com.diffplug.spotless" version "6.9.1" apply false
id "com.diffplug.spotless" version "6.10.0" apply false
id "org.gradle.test-retry" version "1.4.0" apply false
id "test-report-aggregation"
id 'jacoco-report-aggregation'
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/version.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ asm = 9.3
# when updating the JNA version, also update the version in buildSrc/build.gradle
jna = 5.5.0

netty = 4.1.79.Final
netty = 4.1.80.Final
joda = 2.10.13

# client dependencies
Expand Down
8 changes: 8 additions & 0 deletions modules/transport-netty4/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@ thirdPartyAudit {
'org.apache.log4j.Level',
'org.apache.log4j.Logger',

// from io.netty.handler.ssl.OpenSslEngine (netty)
'org.bouncycastle.openssl.PEMEncryptedKeyPair',
'org.bouncycastle.openssl.PEMParser',
'org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter',
'org.bouncycastle.openssl.jcajce.JceOpenSSLPKCS8DecryptorProviderBuilder',
'org.bouncycastle.openssl.jcajce.JcePEMDecryptorProviderBuilder',
'org.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfo',

// from io.netty.handler.ssl.OpenSslEngine (netty)
'io.netty.internal.tcnative.Buffer',
'io.netty.internal.tcnative.CertificateCompressionAlgo',
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a087321a63d9991e25f7b7d24ef53edcbcb954ff

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4941821a158d16311665d8606aefa610ecf0f64c

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
efb23f9d5187d2f733595ef7930137f0cb2cec48

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bf7b66834188ef1a6f6095291c6b81a1880798ba

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3d43ce22863bc590e4e33fbdabbb58dc05f4c43d

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cf7029d2f9bc4eeae8ff15af7a528d06b518a017

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3bbb0d4bfbbab867e5b757b97a6e5e0d1348d94c

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
57fcace7a1b8567aa39921c915d1b1ba78fd4d2d

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
da3d7da1a8d317ae2c82b400fd255fe610c43ebe
2 changes: 1 addition & 1 deletion plugins/ingest-attachment/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ dependencies {
api "org.apache.poi:poi:${versions.poi}"
api "org.apache.poi:poi-ooxml-lite:${versions.poi}"
api "commons-codec:commons-codec:${versions.commonscodec}"
api 'org.apache.xmlbeans:xmlbeans:5.1.0'
api 'org.apache.xmlbeans:xmlbeans:5.1.1'
api 'org.apache.commons:commons-collections4:4.4'
// MS Office
api "org.apache.poi:poi-scratchpad:${versions.poi}"
Expand Down
1 change: 0 additions & 1 deletion plugins/ingest-attachment/licenses/xmlbeans-5.1.0.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions plugins/ingest-attachment/licenses/xmlbeans-5.1.1.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
48a369df0eccb509d46203104e4df9cb00f0f68b

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6926d2ea779f41071ecb1948d880dfbb3a6ee126

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bf7b66834188ef1a6f6095291c6b81a1880798ba

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
00025b767be3425f3b31a34ee095c85619169f17

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9b3b42ff805723fb98120f5ab2019c53e71da91b

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6b1602f80b6235b0b7d53bc5e9c1a6cd11c1b804

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
da3d7da1a8d317ae2c82b400fd255fe610c43ebe

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
39e73b76a3ec65df731b371179e15f2c3e4e7575
6 changes: 6 additions & 0 deletions plugins/transport-nio/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ thirdPartyAudit {
'org.bouncycastle.cert.X509v3CertificateBuilder',
'org.bouncycastle.cert.jcajce.JcaX509CertificateConverter',
'org.bouncycastle.operator.jcajce.JcaContentSignerBuilder',
'org.bouncycastle.openssl.PEMEncryptedKeyPair',
'org.bouncycastle.openssl.PEMParser',
'org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter',
'org.bouncycastle.openssl.jcajce.JceOpenSSLPKCS8DecryptorProviderBuilder',
'org.bouncycastle.openssl.jcajce.JcePEMDecryptorProviderBuilder',
'org.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfo',

// from io.netty.handler.ssl.JettyNpnSslEngine (netty)
'org.eclipse.jetty.npn.NextProtoNego$ClientProvider',
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a087321a63d9991e25f7b7d24ef53edcbcb954ff

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4941821a158d16311665d8606aefa610ecf0f64c

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
efb23f9d5187d2f733595ef7930137f0cb2cec48

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3d43ce22863bc590e4e33fbdabbb58dc05f4c43d

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cf7029d2f9bc4eeae8ff15af7a528d06b518a017

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3bbb0d4bfbbab867e5b757b97a6e5e0d1348d94c

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
57fcace7a1b8567aa39921c915d1b1ba78fd4d2d
1 change: 1 addition & 0 deletions server/src/main/java/org/opensearch/Version.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public class Version implements Comparable<Version>, ToXContentFragment {
public static final Version V_2_1_1 = new Version(2010199, org.apache.lucene.util.Version.LUCENE_9_2_0);
public static final Version V_2_2_0 = new Version(2020099, org.apache.lucene.util.Version.LUCENE_9_3_0);
public static final Version V_2_2_1 = new Version(2020199, org.apache.lucene.util.Version.LUCENE_9_3_0);
public static final Version V_2_2_2 = new Version(2020299, org.apache.lucene.util.Version.LUCENE_9_3_0);
public static final Version V_2_3_0 = new Version(2030099, org.apache.lucene.util.Version.LUCENE_9_3_0);
public static final Version V_3_0_0 = new Version(3000099, org.apache.lucene.util.Version.LUCENE_9_4_0);
public static final Version CURRENT = V_3_0_0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,14 @@ public void testUpdateSegments() throws Exception {
final NRTReplicationEngine nrtEngine = buildNrtReplicaEngine(globalCheckpoint, nrtEngineStore)
) {
// add docs to the primary engine.
List<Engine.Operation> operations = generateHistoryOnReplica(between(1, 500), randomBoolean(), randomBoolean(), randomBoolean())
.stream()
.filter(op -> op.operationType().equals(Engine.Operation.TYPE.INDEX))
.collect(Collectors.toList());
List<Engine.Operation> operations = generateHistoryOnReplica(
between(1, 500),
randomBoolean(),
randomBoolean(),
randomBoolean(),
Engine.Operation.TYPE.INDEX
);

for (Engine.Operation op : operations) {
applyOperation(engine, op);
applyOperation(nrtEngine, op);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1070,14 +1070,29 @@ public List<Engine.Operation> generateHistoryOnReplica(
boolean allowGapInSeqNo,
boolean allowDuplicate,
boolean includeNestedDocs
) throws Exception {
return generateHistoryOnReplica(
numOps,
allowGapInSeqNo,
allowDuplicate,
includeNestedDocs,
randomFrom(Engine.Operation.TYPE.values())
);
}

public List<Engine.Operation> generateHistoryOnReplica(
int numOps,
boolean allowGapInSeqNo,
boolean allowDuplicate,
boolean includeNestedDocs,
Engine.Operation.TYPE opType
) throws Exception {
long seqNo = 0;
final int maxIdValue = randomInt(numOps * 2);
final List<Engine.Operation> operations = new ArrayList<>(numOps);
CheckedBiFunction<String, Integer, ParsedDocument, IOException> nestedParsedDocFactory = nestedParsedDocFactory();
for (int i = 0; i < numOps; i++) {
final String id = Integer.toString(randomInt(maxIdValue));
final Engine.Operation.TYPE opType = randomFrom(Engine.Operation.TYPE.values());
final boolean isNestedDoc = includeNestedDocs && opType == Engine.Operation.TYPE.INDEX && randomBoolean();
final int nestedValues = between(0, 3);
final long startTime = threadPool.relativeTimeInNanos();
Expand Down

0 comments on commit 3dd1d1a

Please sign in to comment.