{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/16473","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/16473/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/16473/comments","events_url":"https://api.github.com/repos/apache/spark/issues/16473/events","html_url":"https://github.com/apache/spark/pull/16473","id":198827678,"number":16473,"title":"[SPARK-19069] [CORE] Expose task 'status' and 'duration' in spark history server REST API.","user":{"login":"paragpc","id":5827354,"avatar_url":"https://avatars.githubusercontent.com/u/5827354?v=3","gravatar_id":"","url":"https://api.github.com/users/paragpc","html_url":"https://github.com/paragpc","followers_url":"https://api.github.com/users/paragpc/followers","following_url":"https://api.github.com/users/paragpc/following{/other_user}","gists_url":"https://api.github.com/users/paragpc/gists{/gist_id}","starred_url":"https://api.github.com/users/paragpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paragpc/subscriptions","organizations_url":"https://api.github.com/users/paragpc/orgs","repos_url":"https://api.github.com/users/paragpc/repos","events_url":"https://api.github.com/users/paragpc/events{/privacy}","received_events_url":"https://api.github.com/users/paragpc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-01-04T22:29:38Z","updated_at":"2017-01-07T22:23:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/16473","html_url":"https://github.com/apache/spark/pull/16473","diff_url":"https://github.com/apache/spark/pull/16473.diff","patch_url":"https://github.com/apache/spark/pull/16473.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nAlthough Spark history server UI shows task ‘status’ and ‘duration’ fields, it does not expose these fields in the REST API response. For the Spark history server API users, it is not possible to determine task status and duration. Spark history server has access to task status and duration from event log, but it is not exposing these in API. This patch is proposed to expose task ‘status’ and ‘duration’ fields in Spark history server REST API.\r\n\r\n## How was this patch tested?\r\n\r\nModified existing test cases in org.apache.spark.deploy.history.HistoryServerSuite.\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/271114326","html_url":"https://github.com/apache/spark/pull/16473#issuecomment-271114326","issue_url":"https://api.github.com/repos/apache/spark/issues/16473","id":271114326,"user":{"login":"paragpc","id":5827354,"avatar_url":"https://avatars.githubusercontent.com/u/5827354?v=3","gravatar_id":"","url":"https://api.github.com/users/paragpc","html_url":"https://github.com/paragpc","followers_url":"https://api.github.com/users/paragpc/followers","following_url":"https://api.github.com/users/paragpc/following{/other_user}","gists_url":"https://api.github.com/users/paragpc/gists{/gist_id}","starred_url":"https://api.github.com/users/paragpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paragpc/subscriptions","organizations_url":"https://api.github.com/users/paragpc/orgs","repos_url":"https://api.github.com/users/paragpc/repos","events_url":"https://api.github.com/users/paragpc/events{/privacy}","received_events_url":"https://api.github.com/users/paragpc/received_events","type":"User","site_admin":false},"created_at":"2017-01-07T22:23:49Z","updated_at":"2017-01-07T22:23:49Z","body":"```[error]  * method this(Long,Int,Int,java.util.Date,java.lang.String,java.lang.String,java.lang.String,Boolean,scala.collection.Seq,scala.Option,scala.Option)Unit in class org.apache.spark.status.api.v1.TaskData does not have a correspondent in current version\r\n[error]    filter with: ProblemFilters.exclude[DirectMissingMethodProblem](\"org.apache.spark.status.api.v1.TaskData.this\")\r\n[error]  * synthetic method <init>$default$10()scala.Option in object org.apache.spark.status.api.v1.TaskData does not have a correspondent in current version\r\n\r\n[error]    filter with: ProblemFilters.exclude[DirectMissingMethodProblem](\"org.apache.spark.status.api.v1.TaskData.<init>$default$10\")\r\n[error]  * synthetic method <init>$default$11()scala.Option in object org.apache.spark.status.api.v1.TaskData does not have a correspondent in current version\r\n[error]    filter with: ProblemFilters.exclude[DirectMissingMethodProblem](\"org.apache.spark.status.api.v1.TaskData.<init>$default$11\")```"}}
{"actor":{"display_login":"paragpc"}}