[MDSAL-83] Unwanted update event got when use WriteTransaction.put method if createMissingParents is ture. Created: 04/May/15  Updated: 09/Mar/18  Resolved: 30/Jan/18

Status: Resolved
Project: mdsal
Component/s: Binding runtime
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
Platform: All


External issue ID: 3103

 Description   

yang model is:
container cats {
config true;
list cat {
key "id";
uses cat-struct;
list baby

{ key "id"; uses cat-struct; }

}
}
rpc add-baby {
input {
leaf parent

{ type string; }

uses cat-struct;
}
}

Register a same listener to listen cat and baby's changes.Scope is BASE.
If WriteTransaction.put method's createMissingParents argument is false when add-baby, everything seems ok. The listener will only get one event, which is baby created.
But if createMissingParents is true, the listener will get a cat update event, even if the parent cat node already exsits.
Version is Helium-SR2.



 Comments   
Comment by Robert Varga [ 27/Oct/16 ]

Is this still reproducible with Beryllium/Boron/Carbon?

Comment by Robert Varga [ 30/Jan/18 ]

DataChangeListeners are considered obsolete, hence we will not fix this issue – it is not present in DataTreeChangeListener

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