You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Wangda Tan (JIRA)" <ji...@apache.org> on 2017/11/03 21:25:00 UTC
[jira] [Created] (YARN-7442) [YARN-7069] Limit format of resource
type name
Wangda Tan created YARN-7442:
--------------------------------
Summary: [YARN-7069] Limit format of resource type name
Key: YARN-7442
URL: https://issues.apache.org/jira/browse/YARN-7442
Project: Hadoop YARN
Issue Type: Sub-task
Reporter: Wangda Tan
Priority: Blocker
I think we should limit format of resource type name. Otherwise it could be very hard to update in the future after release.
I propose to have format:
{code}
[a-zA-Z0-9][a-zA-Z0-9_.-/]*
{code}
Adding this check to setResourceInformation might affect performance a lot. Probably we can add to {{ResourceUtils#initializeResourcesMap}} when resource types are loaded from config file.
[~templedf]/[~sunilg].
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org