{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/6935","labels_url":"https://api.github.com/repos/apache/spark/issues/6935/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/6935/comments","events_url":"https://api.github.com/repos/apache/spark/issues/6935/events","html_url":"https://github.com/apache/spark/pull/6935","id":90119356,"number":6935,"title":"SPARK-7889 Jobs progress of apps on complete page of HistoryServer shows uncompleted\t","user":{"login":"steveloughran","id":162090,"avatar_url":"https://avatars.githubusercontent.com/u/162090?v=3","gravatar_id":"","url":"https://api.github.com/users/steveloughran","html_url":"https://github.com/steveloughran","followers_url":"https://api.github.com/users/steveloughran/followers","following_url":"https://api.github.com/users/steveloughran/following{/other_user}","gists_url":"https://api.github.com/users/steveloughran/gists{/gist_id}","starred_url":"https://api.github.com/users/steveloughran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveloughran/subscriptions","organizations_url":"https://api.github.com/users/steveloughran/orgs","repos_url":"https://api.github.com/users/steveloughran/repos","events_url":"https://api.github.com/users/steveloughran/events{/privacy}","received_events_url":"https://api.github.com/users/steveloughran/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-06-22T14:39:06Z","updated_at":"2015-06-25T06:59:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/6935","html_url":"https://github.com/apache/spark/pull/6935","diff_url":"https://github.com/apache/spark/pull/6935.diff","patch_url":"https://github.com/apache/spark/pull/6935.patch"},"body":"This patch pulls all the application cache logic out of the `HistoryServer` and into its own class with callbacks for operations (get &c). This makes unit tests straightforward with a small bit of mocking of SparkUI.\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/115131256","html_url":"https://github.com/apache/spark/pull/6935#issuecomment-115131256","issue_url":"https://api.github.com/repos/apache/spark/issues/6935","id":115131256,"user":{"login":"XuTingjun","id":7609069,"avatar_url":"https://avatars.githubusercontent.com/u/7609069?v=3","gravatar_id":"","url":"https://api.github.com/users/XuTingjun","html_url":"https://github.com/XuTingjun","followers_url":"https://api.github.com/users/XuTingjun/followers","following_url":"https://api.github.com/users/XuTingjun/following{/other_user}","gists_url":"https://api.github.com/users/XuTingjun/gists{/gist_id}","starred_url":"https://api.github.com/users/XuTingjun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XuTingjun/subscriptions","organizations_url":"https://api.github.com/users/XuTingjun/orgs","repos_url":"https://api.github.com/users/XuTingjun/repos","events_url":"https://api.github.com/users/XuTingjun/events{/privacy}","received_events_url":"https://api.github.com/users/XuTingjun/received_events","type":"User","site_admin":false},"created_at":"2015-06-25T06:59:06Z","updated_at":"2015-06-25T06:59:06Z","body":"@steveloughran  Have you tested it? I don't think it's ok.\r\nyeah, you realized the refreshing of incompleted apps. But I think second time sending \"/history/appid\" request , it will not goes into [/history handler](https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/deploy/history/HistoryServer.scala#L77), but goes to [history/appid handler](https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/ui/JettyUtils.scala#L116), so it will not call the [refresh code](https://github.com/steveloughran/spark/blob/stevel/patches/SPARK-7889-history-cache/core/src/main/scala/org/apache/spark/deploy/history/ApplicationCache.scala#L75) and won't refresh.\r\n/cc @squito "}}