Skip to content

Commit 5e299a2

Browse files
committed
Ignore data locality in FileStreamSourceSuite
1 parent 8c8aa81 commit 5e299a2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sql/core/src/test/scala/org/apache/spark/sql/streaming/FileStreamSourceSuite.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1282,6 +1282,7 @@ class FileStreamSourceSuite extends FileStreamSourceTest {
12821282
// This is to avoid running a spark job to list of files in parallel
12831283
// by the InMemoryFileIndex.
12841284
spark.sessionState.conf.setConf(SQLConf.PARALLEL_PARTITION_DISCOVERY_THRESHOLD, numFiles * 2)
1285+
spark.sessionState.conf.setConf(SQLConf.IGNORE_DATA_LOCALITY, true)
12851286

12861287
withTempDirs { case (root, tmp) =>
12871288
val src = new File(root, "a=1")
@@ -1946,6 +1947,7 @@ class FileStreamSourceSuite extends FileStreamSourceTest {
19461947
val originClassForLocalFileSystem = spark.conf.getOption(optionKey)
19471948
try {
19481949
spark.conf.set(optionKey, classOf[CountListingLocalFileSystem].getName)
1950+
spark.conf.set(SQLConf.IGNORE_DATA_LOCALITY.key, "true")
19491951
body
19501952
} finally {
19511953
originClassForLocalFileSystem match {

0 commit comments

Comments
 (0)