Janus Chow created HDDS-4791:
--------------------------------
Summary: StateContext.getReports may return list with size larger
the maxLimit
Key: HDDS-4791
URL: https://issues.apache.org/jira/browse/HDDS-4791
Project: Apache Ozone
Issue Type: Bug
Reporter: Janus Chow
Assignee: Janus Chow
The method of StateContext.getReports may return an incorrect size of result.
The invoke of the method is as below:
{code:java}
public List<GeneratedMessage> getReports(InetSocketAddress endpoint, int
maxLimit)
{code}
It will first try to get messages from _incrementalReportsQueue_, then add the
mesages from _containerReports_, _nodeReport_ and _pipelineReports_. If
_incrementalReportQueue_ returns result with the size of maxLimit, getReports
will return result with size of (maxLimit + 3) at most.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]