Skip to content

Conversation

@jerryshao
Copy link
Contributor

Currently there's no chance to close the file correctly after the iteration is finished, change to CompletionIterator to avoid resource leakage.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@SparkQA
Copy link

SparkQA commented May 11, 2015

Test build #32378 has started for PR 6050 at commit 52dfaf5.

@SparkQA
Copy link

SparkQA commented May 11, 2015

Test build #32378 has finished for PR 6050 at commit 52dfaf5.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@AmplabJenkins
Copy link

Merged build finished. Test PASSed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/32378/
Test PASSed.

@srowen
Copy link
Member

srowen commented May 11, 2015

Seems reasonable to me. Is the reader.close _ syntax needed or is just reader.close sufficient? Just curious mostly.

@jerryshao
Copy link
Contributor Author

Thank for your review @srowen , both way are OK.

@tdas
Copy link
Contributor

tdas commented May 11, 2015

LGTM. Good catch!
Merging this. Could open a PR for branch 1.3 as well?

asfgit pushed a commit that referenced this pull request May 11, 2015
…n streaming WAL recovery

Currently there's no chance to close the file correctly after the iteration is finished, change to `CompletionIterator` to avoid resource leakage.

Author: jerryshao <[email protected]>

Closes #6050 from jerryshao/close-file-correctly and squashes the following commits:

52dfaf5 [jerryshao] Close files correctly when iterator is finished

(cherry picked from commit 25c01c5)
Signed-off-by: Tathagata Das <[email protected]>
@asfgit asfgit closed this in 25c01c5 May 11, 2015
@tdas
Copy link
Contributor

tdas commented May 11, 2015

@jerryshao BTW, I merged it quickly, but do make a JIRA and point it to this PR (mark it as solved with fix version being 1.4). And also open another PR for branch 1.3

@jerryshao
Copy link
Contributor Author

Hi @tdas , I will open a JIRA and backport this to 1.3.

jeanlyn pushed a commit to jeanlyn/spark that referenced this pull request May 28, 2015
…n streaming WAL recovery

Currently there's no chance to close the file correctly after the iteration is finished, change to `CompletionIterator` to avoid resource leakage.

Author: jerryshao <[email protected]>

Closes apache#6050 from jerryshao/close-file-correctly and squashes the following commits:

52dfaf5 [jerryshao] Close files correctly when iterator is finished
jeanlyn pushed a commit to jeanlyn/spark that referenced this pull request Jun 12, 2015
…n streaming WAL recovery

Currently there's no chance to close the file correctly after the iteration is finished, change to `CompletionIterator` to avoid resource leakage.

Author: jerryshao <[email protected]>

Closes apache#6050 from jerryshao/close-file-correctly and squashes the following commits:

52dfaf5 [jerryshao] Close files correctly when iterator is finished
nemccarthy pushed a commit to nemccarthy/spark that referenced this pull request Jun 19, 2015
…n streaming WAL recovery

Currently there's no chance to close the file correctly after the iteration is finished, change to `CompletionIterator` to avoid resource leakage.

Author: jerryshao <[email protected]>

Closes apache#6050 from jerryshao/close-file-correctly and squashes the following commits:

52dfaf5 [jerryshao] Close files correctly when iterator is finished
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants