You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "zhztheplayer (via GitHub)" <gi...@apache.org> on 2025/11/01 20:38:18 UTC

[PR] [SPARK-54132][SQL][TESTS] Cover HashedRelation#close in HashedRelationSuite [spark]

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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-54132][SQL][TESTS] Cover HashedRelation#close in HashedRelationSuite [spark]

Posted by "cloud-fan (via GitHub)" <gi...@apache.org>.
cloud-fan closed pull request #52830: [SPARK-54132][SQL][TESTS] Cover HashedRelation#close in HashedRelationSuite
URL: https://github.com/apache/spark/pull/52830


-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-54132][SQL][TESTS] Cover HashedRelation#close in HashedRelationSuite [spark]

Posted by "zhztheplayer (via GitHub)" <gi...@apache.org>.
zhztheplayer commented on PR #52830:
URL: https://github.com/apache/spark/pull/52830#issuecomment-3479430363

   @HyukjinKwon @yaooqinn @wangyum @cloud-fan Could you please review? Thanks!


-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-54132][SQL][TESTS] Cover HashedRelation#close in HashedRelationSuite [spark]

Posted by "cloud-fan (via GitHub)" <gi...@apache.org>.
cloud-fan commented on PR #52830:
URL: https://github.com/apache/spark/pull/52830#issuecomment-3482005627

   thanks, merging to master/4.1 (for test coverage)!


-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-54132][SQL][TESTS] Cover HashedRelation#close in HashedRelationSuite [spark]

Posted by "zhztheplayer (via GitHub)" <gi...@apache.org>.
zhztheplayer commented on PR #52830:
URL: https://github.com/apache/spark/pull/52830#issuecomment-3482029487

   Thanks, @cloud-fan!


-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-54132][SQL][TESTS] Cover HashedRelation#close in HashedRelationSuite [spark]

Posted by "yaooqinn (via GitHub)" <gi...@apache.org>.
yaooqinn commented on PR #52830:
URL: https://github.com/apache/spark/pull/52830#issuecomment-3483420884

   Late LGTM


-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org