brandboat opened a new pull request, #17092:
URL: https://github.com/apache/kafka/pull/17092

   related to https://issues.apache.org/jira/browse/KAFKA-17265
   > The test depends on GC to verify the memory usage. However, that is 
unstable. All we want to prove is that the inner "object" will drop the 
reference. Hence, we should rewrite the test to check the reference of inner 
object instead of calling GC.
   
   This PR mainly turn MemoryRecordsBuilderTest#testBuffersDereferencedOnClose 
into an unit test to make sure after MemoryRecordsBuilder#build is invoked, 
data stream is closed and we can't append any record to MemoryRecordsBuilder.
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


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

Reply via email to