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

Zookeeper node under leader and leaderlatch is not deleted after job finished

    XMLWordPrintableJSON

Details

    • The `HighAvailabilityServices` have received a new method `cleanupJobData` which can be implemented in order to clean up job related HA data after a given job has terminated.

    Description

      I used flink 1.11 in standalone cluster mode for batch job. The enviornment was configured as zookeeper HA mode.

      After job was commited, flink runtime created nodes under /flink/default/leader and /flink/default/leaderlatch with job id.  Though jobs were finished, these nodes  were remaining in zookeeper path forever. 

      After a period of running, more and more jobs had been executed and there were a greate number of nodes under /flink/default/leader and slowed down the performance of zookeeper. Why not delete the nodes after job finished? Flink runtime could get job status by listeners and delete the leader nodes for job immidiately.

      Attachments

        Issue Links

          Activity

            People

              yittg Yi Tang
              ghostmickey lidesheng
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: