Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-41419

[K8S] Decrement PVC_COUNTER when the pod deletion happens

    XMLWordPrintableJSON

Details

    • Task
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • 3.4.0
    • None
    • Kubernetes
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: