[YANGTOOLS-327] StreamWriter APIs loses information about leaf-set ordering Created: 24/Sep/14  Updated: 10/Apr/22  Resolved: 12/Jan/16

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Tony Tkacik Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Duplicate
is duplicated by YANGTOOLS-565 ordered-by user for leaf-list throws ... Resolved
External issue ID: 2062

 Description   

leaf-list noderefs {
ordered-by user;
type inv:node-connector-ref;
}

BindingStreamEventWriter and NormalizedNodeStreamWriter APIs looses information
about ordered-by statement of leaf-list by not exposing proper event, so underlying
implementations were free to choose more efficient unordered implementation (leaf-list
is set by definition).

This caused reordering of leaf-list entries.

Ordered-by statement works for list items. User ordered leaf-list are supported in Data Store and other pieces of infrastructure.



 Comments   
Comment by Jan Hajnar [ 11/Nov/14 ]

fix:
https://git.opendaylight.org/gerrit/#/c/12675/

clustering modification that is dependent on NormalizedNodeStreamWriter:
https://git.opendaylight.org/gerrit/#/c/12676/

Comment by Jan Hajnar [ 11/Aug/15 ]

Hi,

Since in Lithium we preserve leaf-list ordering and patch for this issue didn't get merged into Helium SR4, final status for this issue is fixed in Lithium and won't fix in Helium.

Jan.

Comment by Robert Varga [ 07/Jan/16 ]

The fix was not actually delivered and the problem was reported again against Li SR3, affects Be, too.

Comment by Robert Varga [ 08/Jan/16 ]

Li:
https://git.opendaylight.org/gerrit/32231
https://git.opendaylight.org/gerrit/24917

Be:
https://git.opendaylight.org/gerrit/32258
https://git.opendaylight.org/gerrit/32261
https://git.opendaylight.org/gerrit/12676
https://git.opendaylight.org/gerrit/32268

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