Add support for diff calculation in dependency tracker
It is possible that processing an object can take a long time in schema
transformer. During this time, many updates to the same objects could
be received from rabbitmq. All those changes would be processed with the
one update only. We should have a way to ignore the updates where no
change is detected.
With this change, we are adding support for specifying ref/prop fields
for each object type and on update, we compare these fields from
previously cached values. If no change is detected, we terminate the
dependency tracker process.
Closes-Bug: 1674514
Change-Id: I0b1244e5473ded2f085874f2f6bcdade74a5fe63
(cherry picked from commit 6cc4359925a6f062afb31626a0dd5996698ae626)
Reviewed: https:/ /review. opencontrail. org/30031 github. org/Juniper/ contrail- controller/ commit/ 8e01e933769118d 51c0b256b707c48 d42831beb6
Committed: http://
Submitter: Zuul (<email address hidden>)
Branch: R3.2
commit 8e01e933769118d 51c0b256b707c48 d42831beb6
Author: Sachin Bansal <email address hidden>
Date: Wed Mar 22 16:58:57 2017 -0700
Add support for diff calculation in dependency tracker
It is possible that processing an object can take a long time in schema
transformer. During this time, many updates to the same objects could
be received from rabbitmq. All those changes would be processed with the
one update only. We should have a way to ignore the updates where no
change is detected.
With this change, we are adding support for specifying ref/prop fields
for each object type and on update, we compare these fields from
previously cached values. If no change is detected, we terminate the
dependency tracker process.
Closes-Bug: 1674514
Change-Id: I0b1244e5473ded 2f085874f2f6bcd ade74a5fe63 2afb31626a0dd59 96698ae626)
(cherry picked from commit 6cc4359925a6f06