SbloodyS commented on PR #18358:
URL: 
https://github.com/apache/dolphinscheduler/pull/18358#issuecomment-4815585848

   I agree that polling the Job status via GET is a useful safety net when 
informer events are missed and the Kubernetes API is still reachable.
   
   However, I think this still does not fully cover the old `Watcher.onClose` 
failure path. In the current implementation, poll failures are only logged and 
do not count down the latch. Also, task timeout is only a fallback when the 
timeout strategy is FAILED or WARNFAILED; for tasks without those timeout 
strategies, awaitJobCompletion() can still block indefinitely if the informer 
stops delivering events and GET keeps failing.
   
   Could we add a bounded failure policy for continuous polling errors, or 
another explicit fatal/stopped informer path, so the task can fail instead of 
waiting forever? A unit test for “informer started, no terminal event, GET 
keeps failing, no timeout strategy” would also help cover this case.


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to