Skip to content

Commit

Permalink
fix retry cache warning condition
Browse files Browse the repository at this point in the history
  • Loading branch information
SzyWilliam committed Sep 5, 2023
1 parent 1b54bfa commit dd8fed4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1765,7 +1765,7 @@ private CompletableFuture<Message> replyPendingRequest(
// update the retry cache
final CacheEntry cacheEntry = retryCache.getOrCreateEntry(invocationId);
Preconditions.assertTrue(cacheEntry != null);
if (getInfo().isLeader() && !cacheEntry.isCompletedNormally()) {
if (getInfo().isLeader() && cacheEntry.isCompletedNormally()) {
LOG.warn("{} retry cache entry of leader should be pending: {}", this, cacheEntry);
}
if (cacheEntry.isFailed()) {
Expand Down

0 comments on commit dd8fed4

Please sign in to comment.