[CONTROLLER-761] Tree traversal to find a parent does not return data. Created: 03/Sep/14 Updated: 09/Feb/15 Resolved: 09/Feb/15 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | mdsal |
| Affects Version/s: | Helium |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Ramkumar Gowrishankar | Assignee: | Tony Tkacik |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Issue Links: |
|
||||||||
| External issue ID: | 1690 | ||||||||
| Description |
|
I have the following tree in the configuration tree: Node – SampleNodeAugmentation NodeConnector – SampleNodeConnectorAugmentation There can be multiple instances of Node under Nodes and multiple instances of NodeConnector under Node. There can be only one instance of SampleNodeAugmentation and SampleNodeConnectorAugmentation for a given instance of Node or NodeConnector. I have registered for datachangenotification on the SampleNodeConnectorAugmentation. When I get the instance of SampleNodeConnectorAugmentation in onDataChanged, I need to traverse the tree up and get some data from the SampleNodeAugmentation object. I tried the following in onDataChanged: However, the ReadOnlyTransaction does not return a Node object. It looks like the ReadOnlyTransaction needs the Key of the object along with the path to return the object and the firstIdentiferOf does not return a keyed identifier. There should be a way to traverse up the tree from a given object in the tree. |
| Comments |
| Comment by Robert Varga [ 04/Sep/14 ] |
|
Read/put/merge/delete on wildcarded instance identifiers is not defined, so https://git.opendaylight.org/gerrit/10767 adds preconditions to catch them early on. The root cause still needs to be investigated, though. |
| Comment by Tony Tkacik [ 09/Sep/14 ] |
|
Could you please provide information, on which build you experienced this error? |
| Comment by George Zhao [ 19/Jan/15 ] |
|
move to Lithium |
| Comment by Tony Tkacik [ 09/Feb/15 ] |
|
Fixed in stable and master. As it turned out MD-SAL did return also instance identifiers without keys, which should not be used for reads. |