[ https://issues.apache.org/jira/browse/HDFS-17605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17873913#comment-17873913 ]
ASF GitHub Bot commented on HDFS-17605: --------------------------------------- sodonnel opened a new pull request, #6996: URL: https://github.com/apache/hadoop/pull/6996 ### Description of PR With default memory settings TestBPOfferService often errors with GC overhead / OOM errors. After analysing the heap dump, this is due to Mockito holding lots of references to invocations on a datanode mock. This mock is never checked for invocations so we can mark it as stubonly and allow Mockito to drop the invocations. This small change allows the test to consistently pass on my local environment. ### How was this patch tested? This is a test only change. I ran the test several times in my fork to ensure it passed consistently when it often failed prior to the fix. > Reduced memory overhead of TestBPOfferService > --------------------------------------------- > > Key: HDFS-17605 > URL: https://issues.apache.org/jira/browse/HDFS-17605 > Project: Hadoop HDFS > Issue Type: Bug > Components: test > Reporter: Stephen O'Donnell > Assignee: Stephen O'Donnell > Priority: Major > > With default memory settings TestBPOfferService often errors with GC overhead > / OOM errors. After analysing the heap dump, this is due to Mockito holding > lots of references to invocations on a datanode mock. > This mock is never checked for invocations so we can mark it as stubonly and > allow Mockito to drop the invocations. This small change allows the test to > consistently pass on my local environment. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org