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
(cherry picked from commit 4faef232f90b3230c4b24b3c1d8877896347b91a)
Reviewed: https:/ /review. opencontrail. org/29935 github. org/Juniper/ contrail- controller/ commit/ 778d457130c7310 1842178fbf51022 d3faa3b1d6
Committed: http://
Submitter: Zuul (<email address hidden>)
Branch: R3.1
commit 778d457130c7310 1842178fbf51022 d3faa3b1d6
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 0c4b24b3c1d8877 896347b91a)
Closes-Bug:#1670908
(cherry picked from commit 409b4f989c2b59e
Change-Id: I51dfedacdac75f
(cherry picked from commit 4faef232f90b323