You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by mc...@apache.org on 2018/11/20 01:07:58 UTC

[incubator-pinot] branch leader-log created (now 2d9d4db)

This is an automated email from the ASF dual-hosted git repository.

mcvsubbu pushed a change to branch leader-log
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git.


      at 2d9d4db  Added a log message on pinot-server when controller leadership change is read from zookeeper.

This branch includes the following new commits:

     new 2d9d4db  Added a log message on pinot-server when controller leadership change is read from zookeeper.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



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


[incubator-pinot] 01/01: Added a log message on pinot-server when controller leadership change is read from zookeeper.

Posted by mc...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

mcvsubbu pushed a commit to branch leader-log
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git

commit 2d9d4db498fd324f15be1bf55567773ee7953168
Author: Subbu Subramaniam <ss...@linkedin.com>
AuthorDate: Mon Nov 19 17:03:31 2018 -0800

    Added a log message on pinot-server when controller leadership change is read from zookeeper.
    
    Recently we saw a case where the server was repeatedly reporting that it received NOT_LEADER
    responses from the controller. On further look at the logs, it turned out that the controller
    did not get a helix notification that it became leader, so the server was logging what it saw
    in zookeeper.
    
    The behavior did lead us into looking at other things before we found the root cause.
    
    This log will clearly identify how the server concludes who it thinks the leader is.
---
 .../com/linkedin/pinot/server/realtime/ControllerLeaderLocator.java     | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pinot-core/src/main/java/com/linkedin/pinot/server/realtime/ControllerLeaderLocator.java b/pinot-core/src/main/java/com/linkedin/pinot/server/realtime/ControllerLeaderLocator.java
index 4c2c915..f6ee054 100644
--- a/pinot-core/src/main/java/com/linkedin/pinot/server/realtime/ControllerLeaderLocator.java
+++ b/pinot-core/src/main/java/com/linkedin/pinot/server/realtime/ControllerLeaderLocator.java
@@ -94,6 +94,8 @@ public class ControllerLeaderLocator {
       int leaderPort = Integer.valueOf(leader.substring(index + 1));
       _controllerLeaderHostPort = new Pair<>(leaderHost, leaderPort);
       _cachedControllerLeaderInvalid = false;
+      LOGGER.info("Setting controller leader to be {}:{} as per znode version {}, mtime {}", leaderHost, leaderPort,
+          stat.getVersion(), stat.getMtime());
       return _controllerLeaderHostPort;
     } catch (Exception e) {
       LOGGER.warn("Could not locate controller leader, exception", e);


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