@@ -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 ());
@@ -233,7 +233,8 @@ private RetryExecution getOrInitRetryExecution(ExecutionScope executionScope) {
233
233
* <p>Note that this is an improvement, not a bug fix. This situation can happen naturally, we
234
234
* just make the execution more efficient, and avoid questions about conflicts.
235
235
*
236
- * <p>Note that without the conditional locking in the cache, there is a very minor chance that we
236
+ * <p>Note that without the conditional locking in the cache, there is a very minor chance that
237
+ * we
237
238
* would override an additional change coming from a different client.
238
239
*/
239
240
private void cacheUpdatedResourceIfChanged (
0 commit comments