Skip to content

Commit 61b9c81

Browse files
committed
OpenJDK Update (April 2023 Patch releases)
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
1 parent 20ad1d8 commit 61b9c81

File tree

6 files changed

+21
-4
lines changed

6 files changed

+21
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
105105
- Bump `org.apache.commons:commons-compress` from 1.22 to 1.23.0 (#7462)
106106
- Bump Apache Lucene to 9.6.0 ([#7505](https://github.com/opensearch-project/OpenSearch/pull/7505))
107107
- Bump `com.google.cloud:google-cloud-core-http` from 1.93.3 to 2.17.0 (#7488)
108+
- OpenJDK Update (April 2023 Patch releases) ([#7344](https://github.com/opensearch-project/OpenSearch/pull/7344)
108109

109110
### Changed
110111
- Enable `./gradlew build` on MacOS by disabling bcw tests ([#7303](https://github.com/opensearch-project/OpenSearch/pull/7303))
@@ -120,4 +121,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
120121
### Security
121122

122123
[Unreleased 3.0]: https://github.com/opensearch-project/OpenSearch/compare/2.x...HEAD
123-
[Unreleased 2.x]: https://github.com/opensearch-project/OpenSearch/compare/2.7...2.x
124+
[Unreleased 2.x]: https://github.com/opensearch-project/OpenSearch/compare/2.7...2.x

buildSrc/src/main/java/org/opensearch/gradle/test/DistroTestPlugin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@
7575
import java.util.stream.Stream;
7676

7777
public class DistroTestPlugin implements Plugin<Project> {
78-
private static final String SYSTEM_JDK_VERSION = "11.0.18+10";
78+
private static final String SYSTEM_JDK_VERSION = "11.0.19+7";
7979
private static final String SYSTEM_JDK_VENDOR = "adoptium";
80-
private static final String GRADLE_JDK_VERSION = "17.0.6+10";
80+
private static final String GRADLE_JDK_VERSION = "17.0.7+7";
8181
private static final String GRADLE_JDK_VENDOR = "adoptium";
8282

8383
// all distributions used by distro tests. this is temporary until tests are per distribution

buildSrc/version.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ opensearch = 3.0.0
22
lucene = 9.6.0
33

44
bundled_jdk_vendor = adoptium
5-
bundled_jdk = 19.0.2+7
5+
bundled_jdk = 20.0.1+9
66

77

88
# optional dependencies

server/src/internalClusterTest/java/org/opensearch/discovery/ClusterManagerDisruptionIT.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@
5757

5858
import static org.opensearch.test.hamcrest.OpenSearchAssertions.assertAcked;
5959
import static org.hamcrest.Matchers.equalTo;
60+
import static org.hamcrest.Matchers.lessThan;
6061
import static org.hamcrest.Matchers.not;
62+
import static org.junit.Assume.assumeThat;
6163

6264
/**
6365
* Tests relating to the loss of the cluster-manager.
@@ -69,6 +71,8 @@ public class ClusterManagerDisruptionIT extends AbstractDisruptionTestCase {
6971
* Test that cluster recovers from a long GC on cluster-manager that causes other nodes to elect a new one
7072
*/
7173
public void testClusterManagerNodeGCs() throws Exception {
74+
assumeThat("Thread::resume / Thread::suspend are not supported anymore", Runtime.version(), lessThan(Runtime.Version.parse("20")));
75+
7276
List<String> nodes = startCluster(3);
7377

7478
String oldClusterManagerNode = internalCluster().getClusterManagerName();

server/src/internalClusterTest/java/org/opensearch/discovery/StableClusterManagerDisruptionIT.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@
7171

7272
import static java.util.Collections.singleton;
7373
import static org.hamcrest.Matchers.equalTo;
74+
import static org.hamcrest.Matchers.lessThan;
75+
import static org.junit.Assume.assumeThat;
7476

7577
/**
7678
* Tests relating to the loss of the cluster-manager, but which work with the default fault detection settings which are rather lenient and will
@@ -195,6 +197,8 @@ private void testFollowerCheckerAfterClusterManagerReelection(NetworkLinkDisrupt
195197
* following another elected cluster-manager node. These nodes should reject this cluster state and prevent them from following the stale cluster-manager.
196198
*/
197199
public void testStaleClusterManagerNotHijackingMajority() throws Exception {
200+
assumeThat("Thread::resume / Thread::suspend are not supported anymore", Runtime.version(), lessThan(Runtime.Version.parse("20")));
201+
198202
final List<String> nodes = internalCluster().startNodes(
199203
3,
200204
Settings.builder()

test/framework/src/test/java/org/opensearch/test/disruption/LongGCDisruptionTests.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,11 @@
4545
import java.util.concurrent.locks.ReentrantLock;
4646
import java.util.regex.Pattern;
4747

48+
import static org.junit.Assume.assumeThat;
4849
import static org.hamcrest.Matchers.containsString;
4950
import static org.hamcrest.Matchers.equalTo;
5051
import static org.hamcrest.Matchers.greaterThan;
52+
import static org.hamcrest.Matchers.lessThan;
5153

5254
public class LongGCDisruptionTests extends OpenSearchTestCase {
5355

@@ -65,6 +67,8 @@ public void executeLocked(Runnable r) {
6567
}
6668

6769
public void testBlockingTimeout() throws Exception {
70+
assumeThat("Thread::resume / Thread::suspend are not supported anymore", Runtime.version(), lessThan(Runtime.Version.parse("20")));
71+
6872
final String nodeName = "test_node";
6973
LongGCDisruption disruption = new LongGCDisruption(random(), nodeName) {
7074
@Override
@@ -125,6 +129,8 @@ protected long getSuspendingTimeoutInMillis() {
125129
* but does keep retrying until all threads can be safely paused
126130
*/
127131
public void testNotBlockingUnsafeStackTraces() throws Exception {
132+
assumeThat("Thread::resume / Thread::suspend are not supported anymore", Runtime.version(), lessThan(Runtime.Version.parse("20")));
133+
128134
final String nodeName = "test_node";
129135
LongGCDisruption disruption = new LongGCDisruption(random(), nodeName) {
130136
@Override
@@ -179,6 +185,8 @@ protected Pattern[] getUnsafeClasses() {
179185
}
180186

181187
public void testBlockDetection() throws Exception {
188+
assumeThat("Thread::resume / Thread::suspend are not supported anymore", Runtime.version(), lessThan(Runtime.Version.parse("20")));
189+
182190
final String disruptedNodeName = "disrupted_node";
183191
final String blockedNodeName = "blocked_node";
184192
CountDownLatch waitForBlockDetectionResult = new CountDownLatch(1);

0 commit comments

Comments
 (0)