[MDSAL-77] DataChangeScope.ONE does not work in registerDataChangeListener Created: 29/Mar/15  Updated: 09/Mar/18  Resolved: 21/Jun/16

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

Type: Bug
Reporter: Martin Sunal Assignee: Colin Dixon
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 2912
Priority: High

 Description   

if I register a listener like this:
dataProvider.registerDataChangeListener(LogicalDatastoreType.CONFIGURATION, InstanceIdentifier.builder(Nodes.class).child(Node.class).build(), new NodesConfigListener(), DataChangeScope.ONE)

and I PUT data to DS:
http://localhost:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/node-connector/com:nodeconnector
{
"opendaylight-inventory:node-connector": [

{ "id": "com:nodeconnector" }

]
}

the listener does not get a data change event.

btw, If I do GET on node "openflow:1" I can see the node connector "com:nodeconnector" is in datastore.



 Comments   
Comment by Tony Tkacik [ 29/Mar/15 ]

Bug is caused by direct reusing data change scope during registration in MD-SAL.

In Binding version it is indeed scope ONE, but in NormalizedNode world it is level two.

Comment by Ryan Goulding [ 26/Jan/16 ]

This is just a change in javadoc.

Comment by Colin Dixon [ 16/Feb/16 ]

https://git.opendaylight.org/gerrit/34772

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