Skip to content

Commit 652fa3c

Browse files
committed
Re-name test and reapply fix
1 parent 66fc600 commit 652fa3c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/main/scala/org/apache/spark/deploy/SparkHadoopUtil.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class SparkHadoopUtil extends Logging {
179179
Seq.empty
180180
} else {
181181
FileSystem.getAllStatistics
182-
.filter { stats => stats.getScheme.equals(scheme) }
182+
.filter { stats => scheme.equals(stats.getScheme()) }
183183
.map(Utils.invoke(classOf[Statistics], _, "getThreadStatistics"))
184184
}
185185
}

core/src/test/scala/org/apache/spark/metrics/InputOutputMetricsSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class InputOutputMetricsSuite extends FunSuite with SharedSparkContext with Shou
108108
}
109109
}
110110

111-
test("exceptions while getting IO thread statistics should not fail tasks / jobs (SPARK-8062)") {
111+
test("getFileSystemThreadStatistics should guard against null schemes (SPARK-8062)") {
112112
val tempDir = Utils.createTempDir()
113113
val outPath = new File(tempDir, "outfile")
114114

0 commit comments

Comments
 (0)