Closed Antsypc closed 1 month ago
I think it's reasonable: )
/good-first-issue
@Monokaix: This request has been marked as suitable for new contributors.
Please ensure the request meets the requirements listed here.
If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-good-first-issue
command.
Would like to try on this :)
/assign
Would like to try on this :)
@kyooosukedn Oh! Do you want to try this topic? Then I'll give it to you first. I can help review it.
/assign @kyooosukedn
I think the key question is: how do we distinguish between "Aborted", "Terminated", and "Failed"? Are these three states defined as the final state of the Job? I can't easily distinguish the difference between these three states of the Job in the code. Why do we need to divide them into three?
So we must confirm one thing, which states are the final states. And these final states can be recycled by Garbage Collector
@Antsypc Can you describe that under what will you abort a job,and can the job be resumed by command vcctl job resume
?
Aha, aborted job can be resumed: )
![]()
Aha, aborted job can be resumed: )
Based on this result, I think the aborted state is not a final state.
![]()
Aha, aborted job can be resumed: )
Based on this result, I think the aborted state is not a final state.
Yeah!
@Antsypc Aborted
is not a final state and can be resumed so we will close this.
/close
@Monokaix: Closing this issue.
What happened: garbagecollector controller does not clean up any Aborted volcanojobs where the
.status.state.phase
isAborted
.What you expected to happen: Aborted jobs should be cleaned up.
How to reproduce it (as minimally and precisely as possible):
.spec.ttlSecondsAfterFinished
specified.kubectl get vj xxx
, you will see that thee job's.status.state.phase
isAborted
.ttlSecondsAfterFinished
seconds.Anything else we need to know?: The bug seems to occur in the following code. https://github.com/volcano-sh/volcano/blob/v1.10.0-alpha.0/pkg/controllers/garbagecollector/garbagecollector.go#L266
The condition
job.Status.State.Phase == v1alpha1.Aborted
should not be omitted.Environment: