Use ConsistentMap (and not the local cache) when querying leader for a topic
Change-Id: I979a4ab116ed68406a6702fe175ba5eab444116c
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -219,7 +219,7 @@ public class DistributedLeadershipStore | ... | @@ -219,7 +219,7 @@ public class DistributedLeadershipStore |
219 | 219 | ||
220 | @Override | 220 | @Override |
221 | public Leadership getLeadership(String topic) { | 221 | public Leadership getLeadership(String topic) { |
222 | - InternalLeadership internalLeadership = Versioned.valueOrNull(leadershipCache.get(topic)); | 222 | + InternalLeadership internalLeadership = Versioned.valueOrNull(leadershipMap.get(topic)); |
223 | return internalLeadership == null ? null : internalLeadership.asLeadership(); | 223 | return internalLeadership == null ? null : internalLeadership.asLeadership(); |
224 | } | 224 | } |
225 | 225 | ... | ... |
-
Please register or login to post a comment