Skip to content

Commit 371b00a

Browse files
committed
[SPARK-54455][CORE][TESTS] Disable a flaky unmanaged memory tracking with off-heap memory enabled test in MacOS CI
### What changes were proposed in this pull request? This PR aims to disable a flaky `unmanaged memory tracking with off-heap memory enabled` test in MacOS CI ### Why are the changes needed? This test suite passed locally, but has been flaky in MacOS GitHub Action environment. - https://github.com/apache/spark/actions/runs/19442963476/job/55985972662 ``` - unmanaged memory tracking with off-heap memory enabled *** FAILED *** 1400 was not less than or equal to 1200 Off-heap memory should be reduced by unmanaged usage (UnifiedMemoryManagerSuite.scala:592) ``` - https://github.com/apache/spark/actions/runs/19582140886/job/56082446144 ``` - unmanaged memory tracking with off-heap memory enabled *** FAILED *** mm.acquireStorageMemory(UnifiedMemoryManagerSuite.this.dummyBlock, 1100L, OFF_HEAP) was true (UnifiedMemoryManagerSuite.scala:600) ``` ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass the CIs. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #53165 from dongjoon-hyun/SPARK-54455. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent e6fa02e commit 371b00a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/test/scala/org/apache/spark/memory/UnifiedMemoryManagerSuite.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import org.apache.spark.internal.config._
2424
import org.apache.spark.internal.config.Tests._
2525
import org.apache.spark.storage.TestBlockId
2626
import org.apache.spark.storage.memory.MemoryStore
27+
import org.apache.spark.util.Utils
2728

2829
class UnifiedMemoryManagerSuite extends MemoryManagerSuite with PrivateMethodTester {
2930
private val dummyBlock = TestBlockId("--")
@@ -554,6 +555,7 @@ class UnifiedMemoryManagerSuite extends MemoryManagerSuite with PrivateMethodTes
554555
}
555556

556557
test("unmanaged memory tracking with off-heap memory enabled") {
558+
assume(!Utils.isMacOnAppleSilicon)
557559
val maxOnHeapMemory = 1000L
558560
val maxOffHeapMemory = 1500L
559561
val taskAttemptId = 0L

0 commit comments

Comments
 (0)