Project: mesos
Issue MESOS-5301: Add synchronous validation for all types of Calls.
Currently, we do a best effort validation for all calls sent to the master from the scheduler by invoking {{validation::scheduler::call::validate(call, principal)}}. This is a generic validation helper for all calls. However, for more fine grained validation for a particular call, we invoke the validation as part of the call handle itself. {code} Option validationError = roles::validate(frameworkInfo.role()); {code} This in turn makes all validations asynchronous i.e. the framework gets them as {{Event::ERROR}} events later. It would be good if such validations can be handled while processing the {{Call}} message itself synchronously.
Story points: 5