Skip to content

Commit 1d80d2e

Browse files
committed
Thu Sep 29 18:46:00 PDT 2016
1 parent c009783 commit 1d80d2e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

core/src/test/scala/org/apache/spark/DebugFilesystem.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ import scala.collection.mutable
2727

2828
import 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
5457
class DebugFilesystem extends LocalFileSystem {
5558
import DebugFilesystem._
5659

sql/core/src/test/scala/org/apache/spark/sql/test/SharedSQLContext.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,13 @@ package org.apache.spark.sql.test
2020
import org.scalatest.BeforeAndAfterEach
2121

2222
import org.apache.spark.{DebugFilesystem, SparkConf}
23-
import org.apache.spark.internal.Logging
2423
import 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

0 commit comments

Comments
 (0)