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

build: disable BookieZKExpireTest beyond jdk17 #4309

Merged
merged 1 commit into from
Apr 28, 2024

Conversation

shoothzj
Copy link
Member

Motivation

As of JDK 21, the methods suspend and resume on the Thread class throw UnsupportedOperationException.

Changes

  1. Added junit5 annotation @EnabledForJreRange(max = JRE.JAVA_17)(It's modern and better than junit4) to tests that use suspend and resume, effectively disabling these tests on JDK versions higher than 17 where these methods are not supported.
  2. Migrate this test file to junit5

Signed-off-by: ZhangJian He <shoothzj@gmail.com>
@shoothzj
Copy link
Member Author

@shoothzj shoothzj merged commit 99776d4 into apache:master Apr 28, 2024
20 checks passed
@shoothzj shoothzj deleted the java21-zk-expire branch April 28, 2024 01:09
@hangc0276 hangc0276 added this to the 4.18.0 milestone May 25, 2024
zhiheng123 pushed a commit to zhiheng123/bookkeeper that referenced this pull request Jun 5, 2024
Signed-off-by: ZhangJian He <shoothzj@gmail.com>
zhiheng123 pushed a commit to zhiheng123/bookkeeper that referenced this pull request Jun 7, 2024
Signed-off-by: ZhangJian He <shoothzj@gmail.com>
Ghatage pushed a commit to sijie/bookkeeper that referenced this pull request Jul 12, 2024
Signed-off-by: ZhangJian He <shoothzj@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants