Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shell: sort rcalc ranks if needed before assigning shell ranks
Problem: The shell builds its list of ranks in the order they appear in the R_lite array of Rv1, but when ranks appear out of order with respect to broker ranks, this breaks assumptions elsewhere (e.g. in the taskmap code) that shell ranks are a direct index into the sorted broker ranks idset and associated hostlist. Since the common case will be a sorted R_lite array, detect if the ranks are not sorted and, if so, sort the rcalc rank array by broker rank and reassign shell ranks. Fixes flux-framework#6582
- Loading branch information