This fix ensures all redis DB is flushed before any GetSeq calls are sent by the generators. This is needed because we can have the following sequence in the collector that can lead to a crash viz., generator issues GetSeq, collector to redis connection post process call resulting in Flush of database, DeleteUVE request from the generator due to disconnect session. The above sequence tries to delete a UVE thats not there in Redis. This fix prevents such a case from happening.
Closes-Bug:#1670908
(cherry picked from commit 409b4f989c2b59e7a4162317102eebd49695b06d)
Change-Id: I51dfedacdac75fdf5b271cdcaaafb7d4ddfd9bfc
Reviewed: https:/ /review. opencontrail. org/29763 github. org/Juniper/ contrail- controller/ commit/ 4faef232f90b323 0c4b24b3c1d8877 896347b91a
Committed: http://
Submitter: Zuul (<email address hidden>)
Branch: R3.2
commit 4faef232f90b323 0c4b24b3c1d8877 896347b91a
Author: arvindvis <email address hidden>
Date: Mon Mar 13 11:34:32 2017 -0700
This fix ensures all redis DB is flushed before any GetSeq calls are sent by the generators. This is needed because we can have the following sequence in the collector that can lead to a crash viz., generator issues GetSeq, collector to redis connection post process call resulting in Flush of database, DeleteUVE request from the generator due to disconnect session. The above sequence tries to delete a UVE thats not there in Redis. This fix prevents such a case from happening. 7a4162317102eeb d49695b06d) df5b271cdcaaafb 7d4ddfd9bfc
Closes-Bug:#1670908
(cherry picked from commit 409b4f989c2b59e
Change-Id: I51dfedacdac75f