Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.4.0, 3.3.1
-
None
Description
Currently only CapacityScheduler supports placement constraints so request gets forwarded only for capacityScheduler. Below exception will be thrown if custom scheduler supports placement constraint
if (request.getSchedulingRequests() != null && !request.getSchedulingRequests().isEmpty()) { if (!(scheduler instanceof CapacityScheduler)) { String message = "Found non empty SchedulingRequest of " + "AllocateRequest for application=" + appAttemptId.toString() + ", however the configured scheduler=" + scheduler.getClass().getCanonicalName() + " cannot handle placement constraints, rejecting this " + "allocate operation"; LOG.warn(message); throw new YarnException(message); } }