tedyu opened a new pull request, #38948:
URL: https://github.com/apache/spark/pull/38948

   
   ### What changes were proposed in this pull request?
   This is follow-up to commit cc55de33420335bd715720e1d9190bd5e8e2e9fc where 
`PVC_COUNTER` was introduced to track outstanding number of PVCs.
   `PVC_COUNTER` should only be decremented when the pod deletion happens (in 
response to error).
   
   ### Why are the changes needed?
   If the PVC isn't created successfully (where `PVC_COUNTER` isn't 
incremented), we shouldn't decrement the counter.
   `success` tracks the progress of PVC creation:
   value 0 means PVC is not created.
   value 1 means PVC has been created.
   value 2 means PVC has been created but due to subsequent error, the pod is 
deleted.
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   Existing tests.


-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to