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.
Reviewed: https:/ /review. opencontrail. org/29898 github. org/Juniper/ contrail- controller/ commit/ 6cc4359925a6f06 2afb31626a0dd59 96698ae626
Committed: http://
Submitter: Zuul (<email address hidden>)
Branch: master
commit 6cc4359925a6f06 2afb31626a0dd59 96698ae626
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