Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-19171

K8s Resource Manager may lead to resource leak after pod deleted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • None
    • None
    • None
    • None

    Description

      private void terminatedPodsInMainThread(List<KubernetesPod> pods) {
         getMainThreadExecutor().execute(() -> {
            for (KubernetesPod pod : pods) {
               if (pod.isTerminated()) {
                  ...
               }
            }
         });
      }
      

      Looks like that the RM only remove the pod from ledger if the pod "isTerminated", 

      and the pod has been taken accounted after being created.

      However, it is not complete by checking pod "isTerminated", e.g. a Pending pod is deleted manually.

      After that, a new job requires more resource can not trigger the allocation of a new pod.

       

      Pls let me know if i misunderstand, thanks.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yittg Yi Tang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: