-
Notifications
You must be signed in to change notification settings - Fork 858
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mrfetcher ignores failed tasks #249
Mrfetcher ignores failed tasks #249
Conversation
…or uptime is allocated resources and task time is used resources
…w executor uptime is allocated resources and task time is used resources" This reverts commit b6cbbe4.
…are counted against the resource usage. Also, fixes the exception stack trace not showing for failed jobs
@@ -235,52 +235,53 @@ public MapReduceApplicationData fetchData(AnalyticJob job) throws IOException { | |||
jobData.setFinishTime(jobInfo.getFinishTime()); | |||
|
|||
String state = jobInfo.getJobStatus(); | |||
if (state.equals("SUCCEEDED")) { | |||
|
|||
if( state.equals("SUCCEEDED")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting! if-else
<td>{{yarnappheuristicresultdetail.name}}</td> | ||
<td>{{yarnappheuristicresultdetail.value}}</td> | ||
</tr> | ||
{{#if (not-empty yarnappheuristicresultdetail.details) }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case of a failed job, the heuristic details (name, value and details) are as follows:
Error, Stacktrace, <actual_stacktrace>
It would be good to check if yarnappheuristicresultdetail.name equals "Error" rather than checking if details is non-empty. In the future if we plan to include details for other heuristics then this can break.
@akshayrai Fixed your comments. Take a look and merge if it looks good. |
* We have been ignoring Failed Tasks in calculation of resource usage. This handles that. * Fixes Exception heuristic which was supposed to give the stacktrace.
This changes fixes a couple of things
I still need to test this change with the FS fetcher and potentially add a couple of unittests.