Commit 4375c43
committed
resource: fix decode of rankset="all"
Problem: When Fluxion marks "all" resources down, it uses the size of
the by_rank map to encode the set of all ranks, but this is incorrect
because excluded ranks are never presented to the scheduler by the
flux-core resource module. This can result in down resources being
scheduled by Fluxion, causing jobs to immediately fail.
Modify decode_all() to use the actual ranks in the by_rank mapping
instead of presuming the ranks are 0-(size-1).
Fixes #11821 parent 17f0ed1 commit 4375c43
1 file changed
+4
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1144 | 1144 | | |
1145 | 1145 | | |
1146 | 1146 | | |
1147 | | - | |
1148 | | - | |
1149 | | - | |
1150 | | - | |
1151 | | - | |
1152 | | - | |
1153 | | - | |
1154 | | - | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
1155 | 1151 | | |
1156 | 1152 | | |
1157 | 1153 | | |
| |||
0 commit comments