vate
vate
e.g: ``` Assertions.assertTrue(false); => Assertions.fail(); ``` ``` Assertions.assertTrue(future instanceof AppendFuture); => Assertions.assertInstanceOf(AppendFuture.class, future); ```
Delete the synchronized by use the cas update.
This is the original code ```java synchronized (knownMaxTermInGroup) { switch (x.getVoteResult()) { case ACCEPT: acceptedNum.incrementAndGet(); break; case REJECT_ALREADY_HAS_LEADER: alreadyHasLeader.compareAndSet(false, true); break; case REJECT_TERM_SMALL_THAN_LEDGER: case REJECT_EXPIRED_VOTE_TERM: if (x.getTerm() > knownMaxTermInGroup.get()) {...
有一些语句的描述,可以调整一下,阅读能更加流畅一些。
### Before Creating the Bug Report - [X] I found a bug, not just asking a question, which should be created in [GitHub Discussions](https://github.com/apache/rocketmq/discussions). - [X] I have searched the...
### Before Creating the Enhancement Request - [x] I have confirmed that this should be classified as an enhancement rather than a bug/feature. ### Summary optimize some code format or...
### Which Issue(s) This PR Fixes Fixes #8298 ### Brief Description ### How Did You Test This Change?