Madan Jampani

Use ConsistentMap (and not the local cache) when querying leader for a topic

Change-Id: I979a4ab116ed68406a6702fe175ba5eab444116c
...@@ -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
......