yangwwei commented on pull request #190:
URL: 
https://github.com/apache/incubator-yunikorn-k8shim/pull/190#issuecomment-691287098


   hi @TaoYang526 
   
   I am trying to understand how this could happen. In the code, we already did 
a check
   
   ```
   oldPod.Status.Phase != newPod.Status.Phase
   ```
   
   that means when we try to update the occupied resource, that means the pod 
is transiting from `Pending` to `Running`. 
   
   Pod phases are: `Pending`, `Running`, `Succeeded`, `Failed`, `Unknown`. 
Among them, `Succeed` and `Failed` are terminated state, which means they 
cannot transit to `Running` at all. So the only possibility is from `Pending` 
to `Running`, or `Unknown` to `Running`. The case you are seeing, is it from 
`Unknown` to `Running`?


----------------------------------------------------------------
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:
[email protected]


Reply via email to