File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed
extended/src/main/java/io/kubernetes/client/extended/controller Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -61,17 +61,24 @@ public void run() {
61
61
for (Controller controller : this .controllers ) {
62
62
controllerThreadPool .submit (
63
63
() -> {
64
- controller .run ();
65
- latch .countDown ();
64
+ try {
65
+ log .debug ("Starting controller manager" );
66
+ controller .run ();
67
+ } catch (Throwable t ) {
68
+ log .error ("Unexpected controller termination" , t );
69
+ } finally {
70
+ latch .countDown ();
71
+ log .debug ("Exiting controller manager" );
72
+ }
66
73
});
67
74
}
68
75
try {
69
- log .debug ("Controller-Manager {} bootstrapping. ." );
76
+ log .debug ("Controller-Manager bootstrapping." );
70
77
latch .await ();
71
78
} catch (InterruptedException e ) {
72
79
log .error ("Aborting controller-manager." , e );
73
80
} finally {
74
- log .info ("Controller-Manager {} exited" );
81
+ log .info ("Controller-Manager exited" );
75
82
}
76
83
}
77
84
}
Original file line number Diff line number Diff line change @@ -154,9 +154,10 @@ public void run() {
154
154
this .worker ();
155
155
} catch (Throwable t ) {
156
156
log .error ("Unexpected controller loop abortion" , t );
157
+ } finally {
158
+ latch .countDown ();
159
+ log .debug ("Exiting controller {} worker {}.." , this .name , workerIndex );
157
160
}
158
- latch .countDown ();
159
- log .debug ("Exiting controller {} worker {}.." , this .name , workerIndex );
160
161
},
161
162
0 ,
162
163
1 ,
You can’t perform that action at this time.
0 commit comments