runzhiwang commented on a change in pull request #470:
URL: https://github.com/apache/ratis/pull/470#discussion_r632242588
##########
File path:
ratis-server/src/main/java/org/apache/ratis/server/impl/RaftServerImpl.java
##########
@@ -1633,7 +1645,7 @@ void submitUpdateCommitEvent() {
// update the retry cache
final CacheEntry cacheEntry = retryCache.getOrCreateEntry(invocationId);
if (getInfo().isLeader()) {
- Preconditions.assertTrue(cacheEntry != null &&
!cacheEntry.isCompletedNormally(),
+ Preconditions.assertTrue(!cacheEntry.isCompletedNormally(),
Review comment:
why remove cacheEntry != null ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]