{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/20993","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/20993/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/20993/comments","events_url":"https://api.github.com/repos/apache/spark/issues/20993/events","html_url":"https://github.com/apache/spark/pull/20993","id":311876048,"number":20993,"title":"[SPARK-23881][CORE][TEST] Fix flaky test JobCancellationSuite.\"interruptible iterator of shuffle reader\"","user":{"login":"jiangxb1987","id":4784782,"avatar_url":"https://avatars1.githubusercontent.com/u/4784782?v=4","gravatar_id":"","url":"https://api.github.com/users/jiangxb1987","html_url":"https://github.com/jiangxb1987","followers_url":"https://api.github.com/users/jiangxb1987/followers","following_url":"https://api.github.com/users/jiangxb1987/following{/other_user}","gists_url":"https://api.github.com/users/jiangxb1987/gists{/gist_id}","starred_url":"https://api.github.com/users/jiangxb1987/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiangxb1987/subscriptions","organizations_url":"https://api.github.com/users/jiangxb1987/orgs","repos_url":"https://api.github.com/users/jiangxb1987/repos","events_url":"https://api.github.com/users/jiangxb1987/events{/privacy}","received_events_url":"https://api.github.com/users/jiangxb1987/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-06T07:42:12Z","updated_at":"2018-04-06T07:44:35Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/20993","html_url":"https://github.com/apache/spark/pull/20993","diff_url":"https://github.com/apache/spark/pull/20993.diff","patch_url":"https://github.com/apache/spark/pull/20993.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nThe test case JobCancellationSuite.\"interruptible iterator of shuffle reader\" has been flaky because `KillTask` event is handled asynchronously, so it can happen that the semaphore is released but the task is still running.\r\nActually we only have to check if the total number of processed elements is less than the input elements number, so we know the task get cancelled.\r\n\r\n## How was this patch tested?\r\n\r\nThe new test case still fails without the purposed patch, and succeeded in current master."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/379175069","html_url":"https://github.com/apache/spark/pull/20993#issuecomment-379175069","issue_url":"https://api.github.com/repos/apache/spark/issues/20993","id":379175069,"user":{"login":"jiangxb1987","id":4784782,"avatar_url":"https://avatars1.githubusercontent.com/u/4784782?v=4","gravatar_id":"","url":"https://api.github.com/users/jiangxb1987","html_url":"https://github.com/jiangxb1987","followers_url":"https://api.github.com/users/jiangxb1987/followers","following_url":"https://api.github.com/users/jiangxb1987/following{/other_user}","gists_url":"https://api.github.com/users/jiangxb1987/gists{/gist_id}","starred_url":"https://api.github.com/users/jiangxb1987/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiangxb1987/subscriptions","organizations_url":"https://api.github.com/users/jiangxb1987/orgs","repos_url":"https://api.github.com/users/jiangxb1987/repos","events_url":"https://api.github.com/users/jiangxb1987/events{/privacy}","received_events_url":"https://api.github.com/users/jiangxb1987/received_events","type":"User","site_admin":false},"created_at":"2018-04-06T07:44:35Z","updated_at":"2018-04-06T07:44:35Z","author_association":"CONTRIBUTOR","body":"cc @cloud-fan @advancedxy @dongjoon-hyun  PTAL"}}
{"actor":{"display_login":"jiangxb1987"}}