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