{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/15852","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/15852/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/15852/comments","events_url":"https://api.github.com/repos/apache/spark/issues/15852/events","html_url":"https://github.com/apache/spark/pull/15852","id":188822750,"number":15852,"title":"Spark-18187 [SQL] CompactibleFileStreamLog should not use \"compactInterval\" direcly with user setting.","user":{"login":"tcondie","id":1696558,"avatar_url":"https://avatars.githubusercontent.com/u/1696558?v=3","gravatar_id":"","url":"https://api.github.com/users/tcondie","html_url":"https://github.com/tcondie","followers_url":"https://api.github.com/users/tcondie/followers","following_url":"https://api.github.com/users/tcondie/following{/other_user}","gists_url":"https://api.github.com/users/tcondie/gists{/gist_id}","starred_url":"https://api.github.com/users/tcondie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcondie/subscriptions","organizations_url":"https://api.github.com/users/tcondie/orgs","repos_url":"https://api.github.com/users/tcondie/repos","events_url":"https://api.github.com/users/tcondie/events{/privacy}","received_events_url":"https://api.github.com/users/tcondie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-11-11T18:38:13Z","updated_at":"2016-11-11T23:51:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/15852","html_url":"https://github.com/apache/spark/pull/15852","diff_url":"https://github.com/apache/spark/pull/15852.diff","patch_url":"https://github.com/apache/spark/pull/15852.patch"},"body":"## What changes were proposed in this pull request?\r\nCompactibleFileStreamLog relys on \"compactInterval\" to detect a compaction batch. If the \"compactInterval\" is reset by user, CompactibleFileStreamLog will return wrong answer, resulting data loss. This PR procides a way to check the validity of 'compactInterval', and calculate an appropriate value.\r\n\r\n## How was this patch tested?\r\nWhen restart a stream, we change the 'spark.sql.streaming.fileSource.log.compactInterval' different with the former one.\r\n\r\nThe primary solution to this issue was given by @uncleGen \r\nAdded extensions include an additional metadata field in OffsetSeq and CompactibleFileStreamLog APIs. @zsxwing \r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/260082401","html_url":"https://github.com/apache/spark/pull/15852#issuecomment-260082401","issue_url":"https://api.github.com/repos/apache/spark/issues/15852","id":260082401,"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":"2016-11-11T23:51:18Z","updated_at":"2016-11-11T23:51:18Z","body":"**[Test build #68539 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/68539/consoleFull)** for PR 15852 at commit [`4f8ff16`](https://github.com/apache/spark/commit/4f8ff1649cf785e79ae4c8a57f78ef82c72f83cf).\n * This patch **fails Spark unit tests**.\n * This patch merges cleanly.\n * This patch adds no public classes."}}
{"actor":{"display_login":"SparkQA"}}