-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
flux-exec: fix credits list update race
Problem: When a subprocess exits / fails, it is removed from the "subprocess credits" list. However, it is possible this exit / failure is not seen yet before the subprocess credits is updated during a stdin callback. This can lead to the subprocess credits list calculating an an invalid "min credits". This can lead to the stdin callback being started when it should not be. Solution: If the number of "active" subprocesses does not equal the number of subprocesses on the credits list, remove exited/failed credits from the credits list in stdin_cb(). Fixes #6542
- Loading branch information
Showing
1 changed file
with
31 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters