[NETCONF-1242] OpenAPI: Iterate over models in SchemasStream Created: 30/Jan/24  Updated: 07/Feb/24  Resolved: 07/Feb/24

Status: Resolved
Project: netconf
Component/s: restconf-openapi
Affects Version/s: None
Fix Version/s: 7.0.0

Type: Bug Priority: Highest
Reporter: Ivan Hrasko Assignee: Ľuboš Čičut
Resolution: Done Votes: 0
Labels: pt, regression
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Blocks
blocks NETCONF-938 Cannot generate API docs for Junos de... In Review

 Description   

Use originally intended iterative approach to get next chunk of paths (for one model) in SchemasStream. The way that we will have:

toComponents(iterator.next(), isForSingleModule)
...
private static Deque<SchemaEntity> toComponents(final Module module, final boolean isForSingleModule) 

This will restore original draft idea presented in https://git.opendaylight.org/gerrit/c/netconf/+/108258 and possibly saves even more memory as we did for NETCONF-938. After work is done check performance with 2GiB heap space and 6 cores as is described in NETCONF-1234.



 Comments   
Comment by Ivan Hrasko [ 31/Jan/24 ]

This is regression of NETCONF-938 introduced by 6fe8aa811291316bce3177ea2c7c7cf9dfbde672.

Generated at Wed Feb 07 20:17:01 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.