Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-27848

ZooKeeperLeaderElectionDriver keeps writing leader information, using up zxid

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      After a leadership change, the new leader may keeps writing its information (which is identical) to ZK, causing the zxid on ZK quickly used up.

      The problem is that, in ZooKeeperLeaderElectionDriver#retrieveLeaderInformationFromZooKeeper, leaderElectionEventHandler.onLeaderInformationChange(LeaderInformation.empty()) is called no matter childData is null or not. In case of non-null, this will cause the driver keeps re-writing the leader information to ZK.

      The problem was introduced in FLINK-24038, and only affects the legacy ZooKeeperHaServices. Thus, only 1.15 are affected.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            mapohl Matthias Pohl
            xtsong Xintong Song
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment