File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -43,9 +43,8 @@ public class DefaultEventHandler implements EventHandler {
43
43
private final Map <String , RetryExecution > retryState = new HashMap <>();
44
44
private final String controllerName ;
45
45
private final int terminationTimeout ;
46
- private DefaultEventSourceManager eventSourceManager ;
47
-
48
46
private final ReentrantLock lock = new ReentrantLock ();
47
+ private DefaultEventSourceManager eventSourceManager ;
49
48
50
49
public DefaultEventHandler (
51
50
ResourceController controller , ControllerConfiguration configuration , MixedOperation client ) {
@@ -91,6 +90,7 @@ private DefaultEventHandler(
91
90
public void close () {
92
91
try {
93
92
log .debug ("Closing handler for {}" , controllerName );
93
+ executor .shutdown ();
94
94
executor .awaitTermination (terminationTimeout , TimeUnit .SECONDS );
95
95
} catch (InterruptedException e ) {
96
96
log .debug ("Exception closing handler for {}: {}" , controllerName , e .getLocalizedMessage ());
You can’t perform that action at this time.
0 commit comments