You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Janus Chow (Jira)" <ji...@apache.org> on 2021/02/04 03:37:00 UTC
[jira] [Created] (HDDS-4791) StateContext.getReports may return
list with size larger the maxLimit
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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org