Ted Yu created SPARK-41419:
------------------------------
Summary: [K8S] Decrement PVC_COUNTER when the pod deletion happens
Key: SPARK-41419
URL: https://issues.apache.org/jira/browse/SPARK-41419
Project: Spark
Issue Type: Task
Components: Kubernetes
Affects Versions: 3.4.0
Reporter: Ted Yu
commit cc55de3 introduced PVC_COUNTER to track outstanding number of PVCs.
PVC_COUNTER should only be decremented when the pod deletion happens (in
response to error).
If the PVC isn't created successfully (where PVC_COUNTER isn't incremented)
(possibly due to execution not reaching resource(pvc).create() call), we
shouldn't decrement the counter.
variable `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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]