File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
util/src/main/java/io/kubernetes/client/informer/cache Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,12 @@ public void run() {
132
132
watch = newWatch ;
133
133
}
134
134
watchHandler (newWatch );
135
+ } catch (WatchExpiredException e ) {
136
+ // Watch calls were failed due to expired resource-version. Returning
137
+ // to unwind the list-watch loops so that we can respawn a new round
138
+ // of list-watching.
139
+ log .info ("{}#Watch expired, will re-list-watch soon" , this .apiTypeClass );
140
+ return ;
135
141
} catch (Throwable t ) {
136
142
if (isConnectException (t )) {
137
143
// If this is "connection refused" error, it means that most likely
@@ -163,8 +169,6 @@ public void run() {
163
169
closeWatch ();
164
170
}
165
171
}
166
- } catch (WatchExpiredException e ) {
167
- return ;
168
172
} catch (ApiException e ) {
169
173
if (e .getCode () == HttpURLConnection .HTTP_GONE ) {
170
174
log .info (
You can’t perform that action at this time.
0 commit comments