You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/08/04 05:08:59 UTC

[GitHub] [spark] cloud-fan commented on a change in pull request #29344: [SPARK-32524][SQL][TESTS] SharedSparkSession should clean up InMemoryRelation.ser

cloud-fan commented on a change in pull request #29344:
URL: https://github.com/apache/spark/pull/29344#discussion_r464802349



##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/columnar/InMemoryRelation.scala
##########
@@ -277,6 +277,9 @@ object InMemoryRelation {
     ser.get
   }
 
+  /* Visible for testing */
+  private[spark] def clearSerializer(): Unit = synchronized { ser = None }

Review comment:
       Does it really help? `InMemoryRelation.ser` doesn't belong to any session and is global.
   
   I think a simpler fix is to clear it in `CachedBatchSerializerSuite.beforeAll` and `afterAll`.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org