You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2022/07/26 13:20:32 UTC
[spark] branch master updated: [SPARK-39874][SQL][TESTS] Add System.gc at beforeEach in BroadcastJoinSuite*
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 <gu...@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 <gu...@apache.org>
Signed-off-by: Hyukjin Kwon <gu...@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-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org