Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
That commit 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