Skip to content

Conversation

@lw-lin
Copy link
Contributor

@lw-lin lw-lin commented Apr 17, 2016

What changes were proposed in this pull request?

  • replaced FileSystem.get(conf) calls with path.getFileSystem(conf)

How was this patch tested?

N/A

@SparkQA
Copy link

SparkQA commented Apr 17, 2016

Test build #56044 has finished for PR 12450 at commit feefa8d.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

dataFrameBuilder: Array[String] => DataFrame) extends Source with Logging {

private val fs = FileSystem.get(sqlContext.sparkContext.hadoopConfiguration)
private val fs = new Path(path).getFileSystem(sqlContext.sparkContext.hadoopConfiguration)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All LGTM pending tests. I suppose this could even be fetched in the one place it's used later during the method call rather than hold on to a reference, but, I can't recall a specific reason it's bad to hold onto a FileSystem handle, so, leave it as you've done I think.

@srowen
Copy link
Member

srowen commented Apr 17, 2016

Jenkins retest this please

@SparkQA
Copy link

SparkQA commented Apr 17, 2016

Test build #56051 has finished for PR 12450 at commit feefa8d.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@lw-lin
Copy link
Contributor Author

lw-lin commented Apr 18, 2016

Some flaky tests -- not caused by this PR.

Jenkins retest this please

@SparkQA
Copy link

SparkQA commented Apr 18, 2016

Test build #56077 has finished for PR 12450 at commit feefa8d.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@lw-lin
Copy link
Contributor Author

lw-lin commented Apr 19, 2016

Some flaky tests -- not caused by this PR.

Jenkins retest this please

@SparkQA
Copy link

SparkQA commented Apr 19, 2016

Test build #56175 has finished for PR 12450 at commit feefa8d.

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

@asfgit asfgit closed this in 17db4bf Apr 20, 2016
@srowen
Copy link
Member

srowen commented Apr 20, 2016

Merged to master

@lw-lin
Copy link
Contributor Author

lw-lin commented Apr 20, 2016

@srowen thank you for the review & merging :-)

@lw-lin lw-lin deleted the fix-fs-get branch April 20, 2016 12:32
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.

3 participants