Benjamin Teke created YARN-12018:
------------------------------------
Summary: Validate Capacity Scheduler configuration mutations
before persisting them, and support ETag/If-Match
Key: YARN-12018
URL: https://issues.apache.org/jira/browse/YARN-12018
Project: Hadoop YARN
Issue Type: Sub-task
Components: capacity scheduler
Reporter: Benjamin Teke
Assignee: Benjamin Teke
Run the validation engine on scheduler-conf mutations and on refreshQueues
before the configuration store is written and before the scheduler write lock
is taken. Refresh and HA activation fail only on ERROR issues.
GET /scheduler-conf returns an ETag; PUT honors If-Match and returns 412 on a
mismatch, so concurrent editors cannot overwrite each other. A successful PUT
returns the ETag of the configuration it committed, so a client that applies
one change in several requests can make each request conditional on the
previous one. Requests without If-Match behave as today. The Router does not
support If-Match and does not pass the ETag on.
This rejects known invalid proposals before they are persisted and rejects
stale conditional writes; it does not turn persisting, activation and
post-refresh work into an atomic transaction.
The lock order is unchanged: no store I/O or reservation system
reinitialization while holding the scheduler write lock.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]