Uh oh!
There was an error while loading. Please reload this page.
[Spark-14687][Core][SQL][MLlib] Call path.getFileSystem(conf) instead of call FileSystem.get(conf) - #12450
[Spark-14687][Core][SQL][MLlib] Call path.getFileSystem(conf) instead of call FileSystem.get(conf)#12450lw-lin wants to merge 1 commit into
Conversation
SparkQA
commented
Apr 17, 2016
Test build #56044 has finished for PR 12450 at commit
|
| 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) |
There was a problem hiding this comment.
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
commented
Apr 17, 2016
Jenkins retest this please |
SparkQA
commented
Apr 17, 2016
Test build #56051 has finished for PR 12450 at commit
|
Some flaky tests -- not caused by this PR. Jenkins retest this please |
SparkQA
commented
Apr 18, 2016
Test build #56077 has finished for PR 12450 at commit
|
Some flaky tests -- not caused by this PR. Jenkins retest this please |
SparkQA
commented
Apr 19, 2016
Test build #56175 has finished for PR 12450 at commit
|
srowen
commented
Apr 20, 2016
Merged to master |
lw-lin
commented
Apr 20, 2016
@srowen thank you for the review & merging :-) |
What changes were proposed in this pull request?
FileSystem.get(conf)calls withpath.getFileSystem(conf)How was this patch tested?
N/A