You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/07/27 13:07:38 UTC

[GitHub] [pulsar] nodece commented on pull request #16820: Revert "[fix][ci] Fix tests memory leak due to mockito-inline (#15513)"

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: commits-unsubscribe@pulsar.apache.org

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