Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ public class DefaultEventHandler implements EventHandler {
private final Map<String, RetryExecution> retryState = new HashMap<>();
private final String controllerName;
private final int terminationTimeout;
private DefaultEventSourceManager eventSourceManager;

private final ReentrantLock lock = new ReentrantLock();
private DefaultEventSourceManager eventSourceManager;

public DefaultEventHandler(
ResourceController controller, ControllerConfiguration configuration, MixedOperation client) {
Expand Down Expand Up @@ -91,6 +90,7 @@ private DefaultEventHandler(
public void close() {
try {
log.debug("Closing handler for {}", controllerName);
executor.shutdown();
executor.awaitTermination(terminationTimeout, TimeUnit.SECONDS);
} catch (InterruptedException e) {
log.debug("Exception closing handler for {}: {}", controllerName, e.getLocalizedMessage());
Expand Down