This is an automated email from the ASF dual-hosted git repository.

gurwls223 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new 329bb1430b1 [SPARK-39874][SQL][TESTS] Add System.gc at beforeEach in 
BroadcastJoinSuite*
329bb1430b1 is described below

commit 329bb1430b175cc6a6c4769cfc99ec07cc306a6f
Author: Hyukjin Kwon <gurwls...@apache.org>
AuthorDate: Tue Jul 26 22:20:14 2022 +0900

    [SPARK-39874][SQL][TESTS] Add System.gc at beforeEach in BroadcastJoinSuite*
    
    ### What changes were proposed in this pull request?
    
    This PR is similar with https://github.com/apache/spark/pull/37291. Call 
`System.gc()`.
    
    ### Why are the changes needed?
    
    To deflake it. See 
https://github.com/MaxGekk/spark/runs/7516270590?check_suite_focus=true
    
    ### Does this PR introduce _any_ user-facing change?
    
    No, test-only.
    
    ### How was this patch tested?
    
    Should monitor CI
    
    Closes #37297 from HyukjinKwon/SPARK-39874.
    
    Authored-by: Hyukjin Kwon <gurwls...@apache.org>
    Signed-off-by: Hyukjin Kwon <gurwls...@apache.org>
---
 .../org/apache/spark/sql/execution/joins/BroadcastJoinSuite.scala    | 5 +++++
 1 file changed, 5 insertions(+)

diff --git 
a/sql/core/src/test/scala/org/apache/spark/sql/execution/joins/BroadcastJoinSuite.scala
 
b/sql/core/src/test/scala/org/apache/spark/sql/execution/joins/BroadcastJoinSuite.scala
index 256e9426202..3cc43e2dd41 100644
--- 
a/sql/core/src/test/scala/org/apache/spark/sql/execution/joins/BroadcastJoinSuite.scala
+++ 
b/sql/core/src/test/scala/org/apache/spark/sql/execution/joins/BroadcastJoinSuite.scala
@@ -70,6 +70,11 @@ abstract class BroadcastJoinSuiteBase extends QueryTest with 
SQLTestUtils
     }
   }
 
+  override def beforeEach(): Unit = {
+    super.beforeEach()
+    System.gc()
+  }
+
   /**
    * Test whether the specified broadcast join updates the peak execution 
memory accumulator.
    */


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to