commit | f66e9623145fd54ddca5f6f6a6e31a06f7944fda | [log] [tgz] |
---|---|---|
author | ZhangJian He <shoothzj@gmail.com> | Wed May 08 14:28:37 2024 +0800 |
committer | GitHub <noreply@github.com> | Wed May 08 14:28:37 2024 +0800 |
tree | 34c3a0380a73f461ade2c1099624dec9832ac1ac | |
parent | c20213228e76e78c018664ce3e2440ecc5741eb1 [diff] |
Disable two tests in BookKeeperTest on JDK 17+ due to UnsupportedOperationException (#4347) ### Motivation JDK 17 and later throw `UnsupportedOperationException` for the `suspend` and `resume` methods, causing the `testConstructionZkDelay` and `testConstructionNotConnectedExplicitZk` tests to fail. See jdk21 daily build error: https://github.com/apache/bookkeeper/actions/runs/8962118072 ### Changes - Disabled the two affected test methods for JDK 17 and above using the `@EnabledForJreRange` annotation. - Transitioned to JUnit 5 annotations and assertions. ### Q&A Q: why there are so many line changes? like format change A: In junit5, the msg should be put in the latest param, related to some changes. Signed-off-by: ZhangJian He <shoothzj@gmail.com>
Apache BookKeeper is a scalable, fault-tolerant and low latency storage service optimized for append-only workloads.
It is suitable for being used in following scenarios:
Please visit the Documentation from the project website for more information.
For filing bugs, suggesting improvements, or requesting new features, help us out by opening a GitHub issue.
Subscribe or mail the user@bookkeeper.apache.org list - Ask questions, find answers, and also help other users.
Subscribe or mail the dev@bookkeeper.apache.org list - Join development discussions, propose new ideas and connect with contributors.
Join us on Slack - This is the most immediate way to connect with Apache BookKeeper committers and contributors.
We feel that a welcoming open community is important and welcome contributions.
See our installation guide to get your local environment setup.
Take a look at our open issues: GitHub Issues.
Review our coding style and follow our pull requests to learn more about our conventions.
Make your changes according to our contributing guide