[OVSDB-409] Proper handling of back to back config updates Created: 20/Apr/17  Updated: 08/Aug/17  Resolved: 08/Aug/17

Status: Resolved
Project: ovsdb
Component/s: Southbound.hw_vtep
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: suneel verma Assignee: suneel verma
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 8257

 Description   

We are testing the stability of the system when we have 1000 local ucast macs behind the device.
And we are doing delete and add connections repeatedly ( Though it is not realistic scenario, it is exposing the race conditions in plugin ).

Now to reproduce this enable TRACE logging so that it slows down the system to an extent.

Create l2gw connection.
pump 1000 macs from the device and gets injected into op datastore.
Delete l2gw connection.
Plugin Deletes the logical switch and local ucast macs from device.
Device sends back withdraw of 1000 macs events.
They are pushed into queue for processing.
Device sends deleted logical switch event.
This event also is pushed into queue for processing to delete from oper datastore ( queue is already holding 1000 events ).
Now from northbound create l2gw connection.

Plugin sees that logical switch is already there in oper datastore and skips sending create of logical swith.
This is the problem we are trying to fix, by holding this create logical switch event , until the earlier life cycle of delete logical switch is finished ( which gets finished after processing that 1001 st event in the queue ).

The similar argument applies to the other ucast and mcast aswell.
Earlier only mcast update was made part of this life cycle.



 Comments   
Comment by Anil Vishnoi [ 19/May/17 ]

Master (Nitrogen) Patches:

https://git.opendaylight.org/gerrit/#/c/55116/
https://git.opendaylight.org/gerrit/#/c/55119/4
https://git.opendaylight.org/gerrit/#/c/55120/4

stable/carbon patches :
https://git.opendaylight.org/gerrit/#/c/56676/1
https://git.opendaylight.org/gerrit/#/c/55119/4
https://git.opendaylight.org/gerrit/#/c/55116/8

Generated at Wed Feb 07 20:36:19 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.