Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix another regression: a crash introduced in commit feb892f
Commit feb892f (from PR #79) introduced a NullPointerException crash: After the first pass through the `computeResourcesForSlot()` main loop, the `executorCpuResources` and `executorMemResources` variables are not populated, and thus incorreclty null, because `subtractedExecutorResources ` was set to true on the 1st pass. The fix is to unconditionally set them to the requested resource amounts unconditionally, and only subtract the resources out of the offer on the 1st pass. Also an unrelated change: clarify that the reservations that are being skipped in a couple functions are *dynamic* reservations.
- Loading branch information