I’m pretty sure there is a bug there. I’m working on Boron-SR1. I am doing a read on ElanInterfaces with InstanceIdentifier: InstanceIdentifier.create(ElanInterfaces.class) On the result I’m invoking: ElanInterfaces.getElanInteface().size(). Result is 6. Next line of code I’m registering a ClusteredDataTreeChangeListener on ElanInterface: InstanceIdentifier.create(ElanInterfaces.class).child(ElanInterface.class)). The first onDataTreeChanged I’m getting contains only one DataTreeModification. In subsequent notifications I’m getting the rest of the pre-existing data. This same behavior repeats itself in other entities too, and in different setups.
From: Tom Pantelis [mailto:tompante...@gmail.com] Sent: Tuesday, November 29, 2016 1:59 PM To: Sela, Guy <guy.s...@hpe.com> Cc: mdsal-...@lists.opendaylight.org; controller-dev@lists.opendaylight.org Subject: Re: [controller-dev] DataTreeChangeService - pre-existing data yes - on registration it grabs the current data tree and sends it. If you're getting subsequent data then that must have occurred after your registration. On Tue, Nov 29, 2016 at 6:53 AM, Sela, Guy <guy.s...@hpe.com<mailto:guy.s...@hpe.com>> wrote: Hi, In the Javadoc of DataTreeChangeService it says: “ If there is any pre-existing data in the data tree for the path for which you are registering, you will receive an initial data change event, which will contain all pre-existing data, marked as created. “ Is this behavior guaranteed? Will all the existing data be received in a single “onDataTreeChanged” invocation? I’m registering a ClusteredDataTreeChangeListener in my usecase, and I see that I don’t receive all the data in the first call. Thanks, Guy Sela _______________________________________________ controller-dev mailing list controller-dev@lists.opendaylight.org<mailto:controller-dev@lists.opendaylight.org> https://lists.opendaylight.org/mailman/listinfo/controller-dev
_______________________________________________ controller-dev mailing list controller-dev@lists.opendaylight.org https://lists.opendaylight.org/mailman/listinfo/controller-dev