Stephen O'Donnell created HDFS-17605:
----------------------------------------

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


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-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org

Reply via email to