jackjlli commented on a change in pull request #4553: Refactor 
ControllerLeaderLocator
URL: https://github.com/apache/incubator-pinot/pull/4553#discussion_r324388249
 
 

 ##########
 File path: 
pinot-core/src/main/java/org/apache/pinot/server/realtime/ControllerLeaderLocator.java
 ##########
 @@ -41,20 +43,22 @@
   private static ControllerLeaderLocator _instance = null;
   public static final Logger LOGGER = 
LoggerFactory.getLogger(ControllerLeaderLocator.class);
 
+  // Minimum millis which must elapse between consecutive invalidation of cache
+  private static final long MILLIS_BETWEEN_INVALIDATE = 30_000;
+
   private final HelixManager _helixManager;
 
-  // Co-ordinates of the last known controller leader.
-  private Pair<String, Integer> _controllerLeaderHostPort = null;
+  // Co-ordinates of the last known controller leader for every partitions, 
with partition name being the key and lead controller info being the value.
 
 Review comment:
   Done.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to