[ https://issues.apache.org/jira/browse/YARN-8129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16587076#comment-16587076
]
Hudson commented on YARN-8129:
------------------------------
SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #14809 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/14809/])
YARN-8129. Improve error message for invalid value in fields attribute. (rohithsharmaks: rev
d3fef7a5c5b83d27e87b5e49928254a7d1b935e5)
* (edit) hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice/src/main/java/org/apache/hadoop/yarn/server/timelineservice/reader/TimelineReaderWebServicesUtils.java
> Improve error message for invalid value in fields attribute
> -----------------------------------------------------------
>
> Key: YARN-8129
> URL: https://issues.apache.org/jira/browse/YARN-8129
> Project: Hadoop YARN
> Issue Type: Sub-task
> Components: ATSv2
> Reporter: Charan Hebri
> Assignee: Abhishek Modi
> Priority: Minor
> Attachments: YARN-8129.001.patch
>
>
> Query with invalid values for the 'fields' attributes throws a message that isn't very
informative.
> Reader log,
> {noformat}
> 2018-04-09 08:59:46,069 INFO reader.TimelineReaderWebServices (TimelineReaderWebServices.java:getEntities(595))
- 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 (TimelineReaderWebServices.java:handleException(173))
- 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.
> Response,
> {noformat}
> {
> "exception": "BadRequestException",
> "message": "java.lang.Exception: No enum constant org.apache.hadoop.yarn.server.timelineservice.storage.TimelineReader.Field.INFOS",
> "javaClassName": "org.apache.hadoop.yarn.webapp.BadRequestException"
> }{noformat}
> The message shouldn't ideally contain the enum information.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org
|