IntraQueueCandidatesSelector#selectCandidates was not checking the enable/disable status of each queue prior to calculating the resToObtainByPartition.
To test this, I manually modified each of the tests in TestProportionalCapacityPreemptionPolicyIntraQueue to disable preemption on all of the test queues. Without this fix, the tests passed when they should have failed. Meaning, with the preemption disabled on all of the test queues, the tests continued to select containers for preemption. However, when I added this fix, those modified tests started to fail.
Sunil G, Wangda Tan, and Jason Lowe, any comments would be greatly appreciated.