Skip to content

Commit

Permalink
HBASE-27810. Check if event processor is already shut down (#5212)
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolnar committed May 1, 2023
1 parent c02eb87 commit 2bd5666
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,9 @@ private void processEvent(WatchedEvent event) {
public void process(WatchedEvent event) {
LOG.debug(prefix("Received ZooKeeper Event, " + "type=" + event.getType() + ", " + "state="
+ event.getState() + ", " + "path=" + event.getPath()));
zkEventProcessor.submit(() -> processEvent(event));
if (!zkEventProcessor.isShutdown()) {
zkEventProcessor.submit(() -> processEvent(event));
}
}

// Connection management
Expand Down

0 comments on commit 2bd5666

Please sign in to comment.