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 04:40:40 UTC

[GitHub] [spark] dongjoon-hyun opened a new pull request #29344: [SPARK-32524][SQL][TESTS] SharedSparkSession should clean up InMemoryRelation.ser

dongjoon-hyun opened a new pull request #29344:
URL: https://github.com/apache/spark/pull/29344


   ### What changes were proposed in this pull request?
   
   
   ### Why are the changes needed?
   <!--
   Please clarify why the changes are needed. For instance,
     1. If you propose a new API, clarify the use case for a new API.
     2. If you fix a bug, you can clarify why it is a bug.
   -->
   
   
   ### Does this PR introduce _any_ user-facing change?
   <!--
   Note that it means *any* user-facing change including all aspects such as the documentation fix.
   If yes, please clarify the previous behavior and the change this PR proposes - provide the console output, description and/or an example to show the behavior difference if possible.
   If possible, please also clarify if this is a user-facing change compared to the released Spark versions or within the unreleased branches such as master.
   If no, write 'No'.
   -->
   
   
   ### How was this patch tested?
   <!--
   If tests were added, say they were added here. Please make sure to add some test cases that check the changes thoroughly including negative and positive cases if possible.
   If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future.
   If tests were not added, please describe why they were not added and/or why it was difficult to add.
   -->
   


----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
cloud-fan commented on a change in pull request #29344:
URL: https://github.com/apache/spark/pull/29344#discussion_r464803563



##########
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:
       A more complicated fix is to put the serializer instance in `SharedState`. This brings one benefit: users can stop the current spark context, create a new one with a different cache plugin. But I'm not sure if this is a useful feature.




----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun commented on a change in pull request #29344:
URL: https://github.com/apache/spark/pull/29344#discussion_r464805656



##########
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:
       Let me create another PR for @HyukjinKwon or @cloud-fan idea to compare with this.




----------------------------------------------------------------
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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29344: [SPARK-32524][SQL][TESTS] SharedSparkSession should clean up InMemoryRelation.ser

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29344:
URL: https://github.com/apache/spark/pull/29344#issuecomment-668380028






----------------------------------------------------------------
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


[GitHub] [spark] dongjoon-hyun commented on pull request #29344: [SPARK-32524][SQL][TESTS] SharedSparkSession should clean up InMemoryRelation.ser

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun commented on pull request #29344:
URL: https://github.com/apache/spark/pull/29344#issuecomment-668378067


   Could you review this PR, @revans2 , @tgravescs , @cloud-fan ?


----------------------------------------------------------------
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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29344: [SPARK-32524][SQL][TESTS] SharedSparkSession should clean up InMemoryRelation.ser

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29344:
URL: https://github.com/apache/spark/pull/29344#issuecomment-668420571


   Merged build finished. Test FAILed.


----------------------------------------------------------------
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


[GitHub] [spark] SparkQA removed a comment on pull request #29344: [SPARK-32524][SQL][TESTS] SharedSparkSession should clean up InMemoryRelation.ser

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29344:
URL: https://github.com/apache/spark/pull/29344#issuecomment-668376057






----------------------------------------------------------------
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


[GitHub] [spark] AmplabJenkins commented on pull request #29344: [SPARK-32524][SQL][TESTS] SharedSparkSession should clean up InMemoryRelation.ser

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29344:
URL: https://github.com/apache/spark/pull/29344#issuecomment-668420745






----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on a change in pull request #29344:
URL: https://github.com/apache/spark/pull/29344#discussion_r464799986



##########
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:
       Nice, @dongjoon-hyun. What about just fixing `CachedBatchSerializerSuite` not to extend `SharedSparkSessionBase`? For example, like `ExecutorSideSQLConfSuite` or `SparkSessionExtensionSuite`. I think that would be simpler and a more isolated fix.




----------------------------------------------------------------
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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29344: [SPARK-32524][SQL][TESTS] SharedSparkSession should clean up InMemoryRelation.ser

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29344:
URL: https://github.com/apache/spark/pull/29344#issuecomment-668420752


   Test FAILed.
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/127026/
   Test FAILed.


----------------------------------------------------------------
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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29344: [SPARK-32524][SQL][TESTS] SharedSparkSession should clean up InMemoryRelation.ser

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29344:
URL: https://github.com/apache/spark/pull/29344#issuecomment-668376280






----------------------------------------------------------------
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


[GitHub] [spark] dongjoon-hyun commented on pull request #29344: [SPARK-32524][SQL][TESTS] SharedSparkSession should clean up InMemoryRelation.ser

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun commented on pull request #29344:
URL: https://github.com/apache/spark/pull/29344#issuecomment-668400521


   This PR is closed in favor of the alternative.


----------------------------------------------------------------
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


[GitHub] [spark] AmplabJenkins commented on pull request #29344: [SPARK-32524][SQL][TESTS] SharedSparkSession should clean up InMemoryRelation.ser

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29344:
URL: https://github.com/apache/spark/pull/29344#issuecomment-668376280






----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun commented on a change in pull request #29344:
URL: https://github.com/apache/spark/pull/29344#discussion_r464804706



##########
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:
       Yes. Since this is a new feature and new test coverage, I'm also not sure what is the best here.




----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun commented on a change in pull request #29344:
URL: https://github.com/apache/spark/pull/29344#discussion_r464805252



##########
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:
       For this question, yes. The root cause is that InMemoryRelation.ser is a kind of singleton. Since the new configuration is static conf, this will match with the semantic of `InMemoryRelation.ser`. So, the problem is the testing.
   > Does it really help? InMemoryRelation.ser doesn't belong to any session and is global.




----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun commented on a change in pull request #29344:
URL: https://github.com/apache/spark/pull/29344#discussion_r464801731



##########
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:
       Also, the test resource clean-up had better be centralized at `SharedSparkSession`.

##########
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:
       Also, the test resource clean-up had better be centralized at `SharedSparkSession` in order to not to forget.




----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun commented on a change in pull request #29344:
URL: https://github.com/apache/spark/pull/29344#discussion_r464814771



##########
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:
       First of all, @HyukjinKwon 's idea is unable to remove the failure because `InMemoryRelation.ser` is a singleton.
   > What about just fixing CachedBatchSerializerSuite not to extend SharedSparkSessionBase?
   
   I'm moving to @cloud-fan 's proposal.




----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
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


[GitHub] [spark] SparkQA commented on pull request #29344: [SPARK-32524][SQL][TESTS] SharedSparkSession should clean up InMemoryRelation.ser

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29344:
URL: https://github.com/apache/spark/pull/29344#issuecomment-668376057


   **[Test build #127025 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127025/testReport)** for PR 29344 at commit [`b3bed27`](https://github.com/apache/spark/commit/b3bed277ab0c64d2352a0fb76457a3815bdc6534).


----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun commented on a change in pull request #29344:
URL: https://github.com/apache/spark/pull/29344#discussion_r464805656



##########
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:
       Let me create another PR for @HyukjinKwon or @cloud-fan to compare.




----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun commented on a change in pull request #29344:
URL: https://github.com/apache/spark/pull/29344#discussion_r464801416



##########
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:
       Ya. I thought that way first, but this is more general way because SPARK-32274 make SQL cache serialization pluggable. We may have another test suite in the future.




----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun commented on a change in pull request #29344:
URL: https://github.com/apache/spark/pull/29344#discussion_r464814771



##########
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:
       First of all, @HyukjinKwon 's idea is not helpful because `InMemoryRelation.ser` is a singleton.
   > What about just fixing CachedBatchSerializerSuite not to extend SharedSparkSessionBase?
   
   I'm moving to @cloud-fan 's proposal.




----------------------------------------------------------------
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


[GitHub] [spark] dongjoon-hyun closed pull request #29344: [SPARK-32524][SQL][TESTS] SharedSparkSession should clean up InMemoryRelation.ser

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun closed pull request #29344:
URL: https://github.com/apache/spark/pull/29344


   


----------------------------------------------------------------
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


[GitHub] [spark] SparkQA commented on pull request #29344: [SPARK-32524][SQL][TESTS] SharedSparkSession should clean up InMemoryRelation.ser

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29344:
URL: https://github.com/apache/spark/pull/29344#issuecomment-668420196






----------------------------------------------------------------
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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29344: [SPARK-32524][SQL][TESTS] SharedSparkSession should clean up InMemoryRelation.ser

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29344:
URL: https://github.com/apache/spark/pull/29344#issuecomment-668420579






----------------------------------------------------------------
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


[GitHub] [spark] dongjoon-hyun commented on pull request #29344: [SPARK-32524][SQL][TESTS] SharedSparkSession should clean up InMemoryRelation.ser

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun commented on pull request #29344:
URL: https://github.com/apache/spark/pull/29344#issuecomment-668397212


   The alternative PR is ready.
   - https://github.com/apache/spark/pull/29346


----------------------------------------------------------------
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


[GitHub] [spark] AmplabJenkins commented on pull request #29344: [SPARK-32524][SQL][TESTS] SharedSparkSession should clean up InMemoryRelation.ser

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29344:
URL: https://github.com/apache/spark/pull/29344#issuecomment-668380028






----------------------------------------------------------------
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


[GitHub] [spark] AmplabJenkins commented on pull request #29344: [SPARK-32524][SQL][TESTS] SharedSparkSession should clean up InMemoryRelation.ser

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29344:
URL: https://github.com/apache/spark/pull/29344#issuecomment-668420571






----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun commented on a change in pull request #29344:
URL: https://github.com/apache/spark/pull/29344#discussion_r464802058



##########
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:
       BTW, I'm also open to your idea. Let's see the original author and committer opinion. Thanks.

##########
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:
       BTW, I'm still open to your idea. Let's see the original author and committer opinion. Thanks.




----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on a change in pull request #29344:
URL: https://github.com/apache/spark/pull/29344#discussion_r464815045



##########
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:
       Thanks @dongjoon-hyun!




----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
razajafri commented on a change in pull request #29344:
URL: https://github.com/apache/spark/pull/29344#discussion_r464831060



##########
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:
       I like @cloud-fan proposal as it will make testing easier as well. 




----------------------------------------------------------------
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


[GitHub] [spark] SparkQA commented on pull request #29344: [SPARK-32524][SQL][TESTS] SharedSparkSession should clean up InMemoryRelation.ser

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29344:
URL: https://github.com/apache/spark/pull/29344#issuecomment-668379760


   **[Test build #127026 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127026/testReport)** for PR 29344 at commit [`8cfe79b`](https://github.com/apache/spark/commit/8cfe79bc81e48b8a990dcad5d08fa9e4af706d5b).


----------------------------------------------------------------
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