You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Stephen O'Donnell (Jira)" <ji...@apache.org> on 2024/08/19 10:37:00 UTC

[jira] [Resolved] (HDFS-17605) Reduced memory overhead of TestBPOfferService

     [ https://issues.apache.org/jira/browse/HDFS-17605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephen O'Donnell resolved HDFS-17605.
--------------------------------------
    Fix Version/s: 3.5.0
       Resolution: Fixed

> 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
>              Labels: pull-request-available
>             Fix For: 3.5.0
>
>
> 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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org