Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
close zk client after unregistering seesion
Browse files Browse the repository at this point in the history
  • Loading branch information
adyach committed Jun 21, 2019
1 parent 8a11a83 commit cda8d12
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,15 @@ public void onEnter() {
} finally {
try {
getContext().unregisterSession();
getContext().getZkClient().close();
} catch (IOException e) {
getLog().error("Unexpected fail to release zk connection", e);
} finally {
switchState(StreamingContext.DEAD_STATE);
}

try {
getContext().getZkClient().close();
} catch (final IOException e) {
getLog().error("Unexpected fail to release zk connection", e);
}
}
}
}

0 comments on commit cda8d12

Please sign in to comment.