File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
core/src/test/scala/org/apache/spark
sql/core/src/test/scala/org/apache/spark/sql/test Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ import scala.collection.mutable
2727
2828import org .apache .hadoop .fs ._
2929
30- object DebugFilesystem {
30+ import org .apache .spark .internal .Logging
31+
32+ object DebugFilesystem extends Logging {
3133 // Stores the set of active streams and their creation sites.
3234 private val openStreams = new ConcurrentHashMap [FSDataInputStream , Throwable ]()
3335
@@ -51,6 +53,7 @@ object DebugFilesystem {
5153 * DebugFilesystem wraps file open calls to track all open connections. This can be used in tests
5254 * to check that connections are not leaked.
5355 */
56+ // TODO(ekl) we should consider always interposing this to expose num open conns as a metric
5457class DebugFilesystem extends LocalFileSystem {
5558 import DebugFilesystem ._
5659
Original file line number Diff line number Diff line change @@ -20,14 +20,13 @@ package org.apache.spark.sql.test
2020import org .scalatest .BeforeAndAfterEach
2121
2222import org .apache .spark .{DebugFilesystem , SparkConf }
23- import org .apache .spark .internal .Logging
2423import org .apache .spark .sql .{SparkSession , SQLContext }
2524
2625
2726/**
2827 * Helper trait for SQL test suites where all tests share a single [[TestSparkSession ]].
2928 */
30- trait SharedSQLContext extends SQLTestUtils with BeforeAndAfterEach with Logging {
29+ trait SharedSQLContext extends SQLTestUtils with BeforeAndAfterEach {
3130
3231 protected val sparkConf = new SparkConf ()
3332
You can’t perform that action at this time.
0 commit comments