Skip to content

Commit

Permalink
HBASE-27810. Check if event processor is already shut down (apache#5212)
Browse files Browse the repository at this point in the history
(cherry picked from commit 2bd5666)
Change-Id: Ide19d37ce85d614f39d80bbc186ca8811a4704a9
  • Loading branch information
anmolnar authored and Jenkins User committed May 8, 2023
1 parent 23333c4 commit da2c7ff
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.execute(() -> processEvent(event));
if (!zkEventProcessor.isShutdown()) {
zkEventProcessor.execute(() -> processEvent(event));
}
}

// Connection management
Expand Down

0 comments on commit da2c7ff

Please sign in to comment.