Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18934#discussion_r134111215
  
    --- Diff: 
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLQuerySuite.scala 
---
    @@ -2021,4 +2021,22 @@ class SQLQuerySuite extends QueryTest with 
SQLTestUtils with TestHiveSingleton {
           checkAnswer(table.filter($"p" === "p1\" and q=\"q1").select($"a"), 
Row(4))
         }
       }
    +
    +  test("SPARK-21721: Clear FileSystem deleterOnExit cache if path is 
successfully removed") {
    +    withTable("test21721") {
    +      val deleteOnExitField = 
classOf[FileSystem].getDeclaredField("deleteOnExit")
    +      deleteOnExitField.setAccessible(true)
    +
    +      val fs = FileSystem.get(spark.sparkContext.hadoopConfiguration)
    +      val setOfPath = deleteOnExitField.get(fs).asInstanceOf[Set[Path]]
    +
    +      val testData = sparkContext.parallelize(1 to 10).map(i => 
TestData(i, i.toString)).toDF()
    +      sql("CREATE TABLE test21721 (key INT, value STRING)")
    +      val pathSizeToDeleteOnExit = setOfPath.size()
    +
    +      (0 to 10).foreach(_ => 
testData.write.mode(SaveMode.Append).insertInto("test1"))
    --- End diff --
    
    please fix the typo, should be `test21721` instead of `test1`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to