-
Type:
Sub-task
-
Status: Resolved
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: nodemanager, resourcemanager
-
Labels:None
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:
[a-zA-Z0-9][a-zA-Z0-9_.-/]*
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.