Skip to content

Commit

Permalink
Cover more logical branches: topic future has exceptionally complete
Browse files Browse the repository at this point in the history
  • Loading branch information
poorbarcode committed Sep 14, 2022
1 parent 235d13c commit 33e4f11
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2029,7 +2029,9 @@ public CompletableFuture<Void> removeTopicFromCache(String topicNameString, Topi
// Do remove.
return removeTopicFutureFromCache(topicNameString, createTopicFuture);
}
});
// If the future in cache has exception complete,
// the topic instance in the cache is not the same with the topic.
}).exceptionally(ex -> null);
}

private CompletableFuture<Void> removeTopicFutureFromCache(String topic,
Expand Down

0 comments on commit 33e4f11

Please sign in to comment.