Skip to content

Commit 7e57595

Browse files
committed
Remove hacky test.
1 parent 14e09aa commit 7e57595

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetFileFormatSuite.scala

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,6 @@ import org.apache.spark.sql.test.SharedSQLContext
2626

2727
class ParquetFileFormatSuite extends QueryTest with ParquetTest with SharedSQLContext {
2828

29-
test("Number of threads doesn't grow extremely after parquet file reading") {
30-
withTempDir { dir =>
31-
val file = dir.toString + "/file"
32-
spark.range(1).toDF("a").coalesce(1).write.parquet(file)
33-
spark.read.parquet(file)
34-
val numThreadBefore = Thread.activeCount
35-
(1 to 100).map { _ =>
36-
spark.read.parquet(file)
37-
}
38-
val numThreadAfter = Thread.activeCount
39-
// Hard to test a correct thread number,
40-
// but it shouldn't increase more than a reasonable number.
41-
assert(numThreadAfter - numThreadBefore < 20)
42-
}
43-
}
44-
4529
test("read parquet footers in parallel") {
4630
def testReadFooters(ignoreCorruptFiles: Boolean): Unit = {
4731
withTempDir { dir =>

0 commit comments

Comments
 (0)