[YANGTOOLS-527] Write to datastore: route does not have enough elements Created: 12/Oct/15 Updated: 10/Apr/22 Resolved: 10/Nov/15 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Iveta Halanova | Assignee: | Filip Gregor |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Attachments: |
|
||||||||||||||||
| Issue Links: |
|
||||||||||||||||
| External issue ID: | 4454 | ||||||||||||||||
| Description |
|
Using transaction chain and newWriteOnlyTransaction to put route into datastore. Exception is thrown: 2015-10-12 12:17:14,317 | WARN | ult-dispatcher-4 | SimpleShardDataTreeCohort | 174 - org.opendaylight.controller.sal-distributed-datastore - 1.3.0.SNAPSHOT | Store Tx member-1-chn-5-txn-3: Data validation failed for path /(urn:opendaylight:params:xml:ns:yang:bgp-rib?revision=2013-09-25)bgp-rib/rib/rib[ {(urn:opendaylight:params:xml:ns:yang:bgp-rib?revision=2013-09-25)id=example-bgp-rib}]/peer/peer[ {(urn:opendaylight:params:xml:ns:yang:bgp-rib?revision=2013-09-25)peer-id=bgp://127.0.0.3}]/adj-rib-out/tables/tables[ {(urn:opendaylight:params:xml:ns:yang:bgp-rib?revision=2013-09-25)afi=(urn:opendaylight:params:xml:ns:yang:bgp-types?revision=2013-09-19)ipv4-address-family, (urn:opendaylight:params:xml:ns:yang:bgp-rib?revision=2013-09-25)safi=(urn:opendaylight:params:xml:ns:yang:bgp-types?revision=2013-09-19)unicast-subsequent-address-family}]/routes/(urn:opendaylight:params:xml:ns:yang:bgp-inet?revision=2015-03-05)ipv4-routes/ipv4-route. this happens also with flowspec-route |
| Comments |
| Comment by Iveta Halanova [ 12/Oct/15 ] |
|
Attachment ipv4_routes.log has been added with description: receiving 100+ static routes |
| Comment by Robert Varga [ 12/Oct/15 ] |
|
This looks like a thinko in either numOfChildrenFromChildMods() and numOfChildrenFromValue() methods or their combined interaction. The algorithm definitely needs more comments to explain what is going on. |