[Vtigercrm-commits] [Vtiger development] #8239: Concurrency support for ID generation
Vtiger development
vtiger-tickets at trac.vtiger.com
Wed Sep 17 01:05:18 GMT 2014
#8239: Concurrency support for ID generation
-----------------------+------------------------
Reporter: Baptiste | Owner: developer
Type: patch | Status: new
Priority: major | Milestone: Unassigned
Component: vtigercrm | Version: 6.1.0
Severity: Medium | Keywords:
-----------------------+------------------------
We a lot of simultaneous users on the platform (about 120 users) and
sometime we have an issue with a duplicate id.
I found the issue, it's a race condition in CRMEntity.php,
setModuleSeqNumber().
When 2 actions are synchronous from 2 users, the same ID is returned by
the query, then it's the same ID in the UPDATE request.
You need to use "LOCK·TABLE·vtiger_modentity_num·WRITE" before the SELECT,
and "UNLOCK·TABLES" after the "UPDATE".
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/8239>
Vtiger development <http://trac.vtiger.com/>
Vtiger CRM
More information about the vtigercrm-commits
mailing list