zhztheplayer opened a new pull request, #52830:
URL: https://github.com/apache/spark/pull/52830

   ### What changes were proposed in this pull request?
   
   Add the following code in `HashedRelationSuite`, to cover the API 
`HashedRelation#close` in the test suite.
   
   ```scala
     protected override def afterEach(): Unit = {
       super.afterEach()
       assert(umm.executionMemoryUsed === 0)
     }
   ```
   
   Doing this will:
   
   1. Ensure `HashedRelation#close` is called in test code, to lower memory 
footprint and avoid memory leak when executing tests.
   2. Ensure implementations of `HashedRelation#close` free the allocated 
memory blocks correctly.
   
   
   ### Why are the changes needed?
   
   It's an individual effort to improve the test quality, but also a 
prerequisite task for https://github.com/apache/spark/pull/52817.
   
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   
   ### How was this patch tested?
   
   It's a test PR.
   
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   No.
   


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