You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/01/31 13:59:40 UTC

[GitHub] [flink] wangyang0918 commented on a change in pull request #10965: [FLINK-15797][k8s] Reduce log noise of Fabric8FlinkKubeClient

wangyang0918 commented on a change in pull request #10965: [FLINK-15797][k8s] Reduce log noise of Fabric8FlinkKubeClient
URL: https://github.com/apache/flink/pull/10965#discussion_r373491974
 
 

 ##########
 File path: flink-kubernetes/src/main/java/org/apache/flink/kubernetes/kubeclient/Fabric8FlinkKubeClient.java
 ##########
 @@ -269,14 +271,14 @@ public void eventReceived(Action action, Pod pod) {
 						callbackHandler.onDeleted(Collections.singletonList(new KubernetesPod(flinkConfig, pod)));
 						break;
 					default:
-						LOG.info("Skip handling {} event for pod {}", action, pod.getMetadata().getName());
+						LOG.debug("Ignore handling {} event for pod {}", action, pod.getMetadata().getName());
 						break;
 				}
 			}
 
 			@Override
 			public void onClose(KubernetesClientException e) {
-				LOG.error("Pods watcher onClose", e);
+				LOG.debug("The pods watcher is closing.", e);
 
 Review comment:
   @GJL It is a very nice catch. I do not think the watcher will be stopped even some exception occurs. Since the default value of `watchReconnectLimit` is -1. That means the `WatchConnectionManager` will always reconnect. The only one case is the `WatchConnectionManager#close()` by expected.
   
   However, if the `watchReconnectLimit` is configured by users via java properties or environment, the watch may be stopped and all the changes will not be processed properly. I will create a new ticket to track this. A fatal exception will be thrown when the watcher is closed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services