{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/9988","labels_url":"https://api.github.com/repos/apache/spark/issues/9988/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/9988/comments","events_url":"https://api.github.com/repos/apache/spark/issues/9988/events","html_url":"https://github.com/apache/spark/pull/9988","id":118957754,"number":9988,"title":"[SPARK-11932][STREAMING] Partition previous TrackStateRDD if partitioner not present","user":{"login":"tdas","id":663212,"avatar_url":"https://avatars.githubusercontent.com/u/663212?v=3","gravatar_id":"","url":"https://api.github.com/users/tdas","html_url":"https://github.com/tdas","followers_url":"https://api.github.com/users/tdas/followers","following_url":"https://api.github.com/users/tdas/following{/other_user}","gists_url":"https://api.github.com/users/tdas/gists{/gist_id}","starred_url":"https://api.github.com/users/tdas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdas/subscriptions","organizations_url":"https://api.github.com/users/tdas/orgs","repos_url":"https://api.github.com/users/tdas/repos","events_url":"https://api.github.com/users/tdas/events{/privacy}","received_events_url":"https://api.github.com/users/tdas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-11-26T02:10:28Z","updated_at":"2015-12-02T22:29:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/9988","html_url":"https://github.com/apache/spark/pull/9988","diff_url":"https://github.com/apache/spark/pull/9988.diff","patch_url":"https://github.com/apache/spark/pull/9988.patch"},"body":"The reason is that TrackStateRDDs generated by trackStateByKey expect the previous batch's TrackStateRDDs to have a partitioner. However, when recovery from DStream checkpoints, the RDDs recovered from RDD checkpoints do not have a partitioner attached to it. This is because RDD checkpoints do not preserve the partitioner (SPARK-12004).\r\n\r\nWhile #9983 solves SPARK-12004 by preserving the partitioner through RDD checkpoints, there may be a non-zero chance that the saving and recovery fails. To be resilient, this PR repartitions the previous state RDD if the partitioner is not detected. "},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/161454270","html_url":"https://github.com/apache/spark/pull/9988#issuecomment-161454270","issue_url":"https://api.github.com/repos/apache/spark/issues/9988","id":161454270,"user":{"login":"SparkQA","id":8108735,"avatar_url":"https://avatars.githubusercontent.com/u/8108735?v=3","gravatar_id":"","url":"https://api.github.com/users/SparkQA","html_url":"https://github.com/SparkQA","followers_url":"https://api.github.com/users/SparkQA/followers","following_url":"https://api.github.com/users/SparkQA/following{/other_user}","gists_url":"https://api.github.com/users/SparkQA/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkQA/subscriptions","organizations_url":"https://api.github.com/users/SparkQA/orgs","repos_url":"https://api.github.com/users/SparkQA/repos","events_url":"https://api.github.com/users/SparkQA/events{/privacy}","received_events_url":"https://api.github.com/users/SparkQA/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T22:29:02Z","updated_at":"2015-12-02T22:29:02Z","body":"**[Test build #2153 has finished](https://amplab.cs.berkeley.edu/jenkins/job/NewSparkPullRequestBuilder/2153/consoleFull)** for PR 9988 at commit [`34a52f9`](https://github.com/apache/spark/commit/34a52f9d95c92ff6db6f7bc90e981b9052f59390).\n * This patch **fails Spark unit tests**.\n * This patch merges cleanly.\n * This patch adds no public classes."}}