Create multiple simular records within a table
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ovsdbapp |
In Progress
|
Undecided
|
Unassigned |
Bug Description
Hi,
we’ve met with an issue, where it was possible to create multiple similar records within a table (for example in ‘Logical_
How the issue was reproduced:
1. ovsdb-server is under heavy load and sending database updates to clients (udate2, update3) not fast enough
2. client via ovsdbapp tries to add new record, txn.commit_block() returns SUCCESS status
3. due to the ovsdb-server is overloaded, the in-memory database right after transaction is updated slowly and KeyError raised here: https:/
4. in-memory database still hasn't been updated, the client adds the same record again, gets the status SUCCESS and KeyError again. this situation can be repeated many times
5. as a result, several identical records are created in the table
This problem is mentioned here: https:/
I don't know how to properly solve this problem at the ovsdbapp level, but we can try to reduce the chance of this error with https:/
Also, the problem when the in-memory database does not have time to be updated is mentioned here: https:/
if you have other opinion or ideas how to solve this problem, please let me know.
Changed in ovsdbapp: | |
status: | New → In Progress |
Change abandoned by "Slawek Kaplonski <email address hidden>" on branch: master /review. opendev. org/c/openstack /ovsdbapp/ +/865454
Review: https:/
Reason: This review is > 4 weeks without comment and currently blocked by a core reviewer with a -2. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and contacting the reviewer with the -2 on this review to ensure you address their concerns.