Chandni Singh created YARN-7985:
-----------------------------------

             Summary: Service name is validated twice in ServiceClient when a 
service is created
                 Key: YARN-7985
                 URL: https://issues.apache.org/jira/browse/YARN-7985
             Project: Hadoop YARN
          Issue Type: Bug
          Components: yarn-native-services
            Reporter: Chandni Singh
            Assignee: Chandni Singh


In ServiceClient.actionCreate() :
{code:java}
ServiceApiUtil.validateNameFormat(serviceName, getConfig());
ServiceApiUtil.validateAndResolveService(service, fs, getConfig());{code}
However the ServiceApiUtil.validateAndResolveService(...), also validates the 
service name
{code:java}
if (StringUtils.isEmpty(service.getName())) {
  throw new IllegalArgumentException(
      RestApiErrorMessages.ERROR_APPLICATION_NAME_INVALID);
}

validateNameFormat(service.getName(), conf);{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to