baibaichen opened a new pull request, #11475:
URL: https://github.com/apache/incubator-gluten/pull/11475

   ## What changes are proposed in this pull request?
   Fix the unstable memory assertion in `UnsafeColumnarBuildSideRelationTest` 
by triggering GC before recording `initialGlobalBytes` in `beforeAll()`.
   The test was randomly failing because `initialGlobalBytes` could include 
residual memory from previous test suites that hadn't been garbage collected 
yet. When `afterAll()` triggered GC, it would clean up both the current test's 
memory and the residual memory, causing the final memory to be less than 
`initialGlobalBytes`.
   By triggering GC in `beforeAll()` before recording `initialGlobalBytes`, we 
ensure the initial value is accurate and the assertion in `afterAll()` is 
stable.
   ## How was this patch tested?
   Existing unit tests.


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to