Charan Hebri created YARN-8129:

             Summary: Improve error message for invalid value in fields 
                 Key: YARN-8129
             Project: Hadoop YARN
          Issue Type: Improvement
          Components: ATSv2
            Reporter: Charan Hebri

Query with invalid values for the 'fields' attributes throws a message that 
isn't very informative.
Reader log,
2018-04-09 08:59:46,069 INFO  reader.TimelineReaderWebServices 
( - Received URL 
/ws/v2/timeline/users/hrt_qa/flows/test_flow/apps?limit=3&fields=INFOS from 
user hrt_qa

2018-04-09 08:59:46,070 INFO  reader.TimelineReaderWebServices 
( - Processed URL 
/ws/v2/timeline/users/hrt_qa/flows/test_flow/apps?limit=3&fields=INFOS but 
encountered exception (Took 1 ms.){noformat}
Here INFOS is the invalid value for the fields attribute.
  "exception": "BadRequestException",
  "message": "java.lang.Exception: No enum constant",
  "javaClassName": "org.apache.hadoop.yarn.webapp.BadRequestException"
The message shouldn't ideally contain the enum information.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to