{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/8087","labels_url":"https://api.github.com/repos/apache/spark/issues/8087/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/8087/comments","events_url":"https://api.github.com/repos/apache/spark/issues/8087/events","html_url":"https://github.com/apache/spark/pull/8087","id":100191317,"number":8087,"title":"[SPARK-9805] [MLLIB] [PYTHON] [STREAMING] Added _ssc_wait_checked for ml streaming pyspark tests","user":{"login":"jkbradley","id":5084283,"avatar_url":"https://avatars.githubusercontent.com/u/5084283?v=3","gravatar_id":"","url":"https://api.github.com/users/jkbradley","html_url":"https://github.com/jkbradley","followers_url":"https://api.github.com/users/jkbradley/followers","following_url":"https://api.github.com/users/jkbradley/following{/other_user}","gists_url":"https://api.github.com/users/jkbradley/gists{/gist_id}","starred_url":"https://api.github.com/users/jkbradley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkbradley/subscriptions","organizations_url":"https://api.github.com/users/jkbradley/orgs","repos_url":"https://api.github.com/users/jkbradley/repos","events_url":"https://api.github.com/users/jkbradley/events{/privacy}","received_events_url":"https://api.github.com/users/jkbradley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":64,"created_at":"2015-08-10T23:34:05Z","updated_at":"2015-08-12T23:27:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/8087","html_url":"https://github.com/apache/spark/pull/8087","diff_url":"https://github.com/apache/spark/pull/8087.diff","patch_url":"https://github.com/apache/spark/pull/8087.patch"},"body":"Recently, PySpark ML streaming tests have been flaky, most likely because of the batches not being processed in time.  Proposal: Replace the use of _ssc_wait (which waits for a fixed amount of time) with a method which waits for a fixed amount of time but can terminate early based on a termination condition method.  With this, we can extend the waiting period (to make tests less flaky) but also stop early when possible (making tests faster on average, which I verified locally).\r\n\r\nCC: @mengxr @tdas @freeman-lab  If this looks reasonable, I'll update the rest of the uses of \"ssc_wait\""},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/130476807","html_url":"https://github.com/apache/spark/pull/8087#issuecomment-130476807","issue_url":"https://api.github.com/repos/apache/spark/issues/8087","id":130476807,"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-08-12T23:27:21Z","updated_at":"2015-08-12T23:27:21Z","body":"  [Test build #40688 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/40688/console) for   PR 8087 at commit [`2897833`](https://github.com/apache/spark/commit/28978336c9c66341682a1a7209e61c04a48af708).\n * This patch **passes all tests**.\n * This patch merges cleanly.\n * This patch adds no public classes."}}