[MDSAL-96] Using "merge" method update data can't get datachange. Created: 28/Jul/15 Updated: 09/Mar/18 Resolved: 23/Feb/18 |
|
| Status: | Resolved |
| Project: | mdsal |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Leo Cat | Assignee: | Unassigned |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 4059 |
| Description |
|
Yang model like this: } container test-cs { } rpc mergeC1 { input { uses c-struct; } } rpc putC1 { } when use tx.put(store, path, t, createMissingParents), data change listener can get data chage event, otherwise use tx.merge(store, path, t, createMissingParents) can't. Test-c1's value in datastore are both changed using two method. |
| Comments |
| Comment by Leo Cat [ 30/Jul/15 ] |
|
The reson is in Lithium, uses merge method to modify test-c1, test-c1.getModificationType() returns SUBTREE_MODIFIED. So the program continues to resolve test-c1's child lf. But lf has no listener, therfore can't get notification. |
| Comment by Robert Varga [ 23/Feb/18 ] |
|
DataChangeListeners have unfixable issues translating scope and are going away. |