nodece commented on PR #16820:
URL: https://github.com/apache/pulsar/pull/16820#issuecomment-1196733223

   > I don't see any suggestion in the javadoc that indicates the usage of 
`clearInlineMocks()` could cause the error we're facing, would you mind to 
indicate more details? @nodece
   
   I just guess the log is related to #15513. 
   
   
   >In certain specific, rare scenarios (issue 
https://github.com/mockito/mockito/pull/1619) inline mocking causes memory 
leaks. There is no clean way to mitigate this problem completely. Hence, we 
introduced a new API to explicitly clear mock state (only make sense in inline 
mocking!). See example usage in 
[MockitoFramework.clearInlineMocks()](https://javadoc.io/static/org.mockito/mockito-core/4.6.1/org/mockito/MockitoFramework.html#clearInlineMocks()).
 If you have feedback or a better idea how to solve the problem please reach 
out.
   
   Link to 
https://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html#47
   


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