Skip to content

Commit

Permalink
[AMORO-3132]High available service should not close curator client be…
Browse files Browse the repository at this point in the history
…fore LeaderLatch closing (#3133)

[AMORO-3132][Bug]:High available service should not curator client before LeaderLatch closing #3132

(cherry picked from commit 79f1bea)
Signed-off-by: zhoujinsong <[email protected]>
  • Loading branch information
nicochen authored and zhoujinsong committed Oct 11, 2024
1 parent c69faef commit f0400a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ public void waitFollowerShip() throws Exception {
public void close() {
if (leaderLatch != null) {
try {
this.zkClient.close();
this.leaderLatch.close();
this.zkClient.close();
} catch (IOException e) {
LOG.error("Close high availability services failed", e);
}
Expand Down

0 comments on commit f0400a4

Please sign in to comment.