BUG 1595 - Clustering : NPE on startup 12/10512/1
authorMoiz Raja <moraja@cisco.com>
Fri, 29 Aug 2014 22:58:44 +0000 (15:58 -0700)
committerMoiz Raja <moraja@cisco.com>
Fri, 29 Aug 2014 22:58:44 +0000 (15:58 -0700)
commit56faf3cea4400b35fde6686c4ab4a3bdb0da8fdc
treea9fb64059ac1fb3c5e5019165430aac3ec62268e
parent9fa1be3b065c88dc97f7314d3a8eeb038efbabf5
BUG 1595 - Clustering : NPE on startup

This seemed to be happening because of recovery where the topology manager
was trying to add something into the datastore which was already present in
the journal.

The fix was to add a timestamp to each modification so that they do not
appear to be the same even if their content was exactly the same.

Change-Id: I2d5c98bd87ded7c8b64b8cebf757bfa073327061
Signed-off-by: Moiz Raja <moraja@cisco.com>
opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/protobuff/messages/persistent/PersistentMessages.java
opendaylight/md-sal/sal-clustering-commons/src/main/resources/Persistent.proto
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/modification/MutableCompositeModification.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/modification/MutableCompositeModificationTest.java