Closed Pushpalanka closed 3 weeks ago
One option would be to use the config mutex in places where the config is accessed.
@ashutosh-narkar that is possible but will be brittle given the number of code sites and entry points, we might worsen the situation by introducing deadlocks. We could change it to a RW Lock which would make it easier to control. Wdyt?
Sure. That should be fine.
Short description
We are using OPA v0.65.0 as a library and encountered below race condition while using listeners on bundle plugin status. It seems there is a race between writes from
reconfigure
method and reads atpersistbundle
methods on bundle plugin configuration.Error trace:
cc: @mjungsbluth