Red Hat Bugzilla – Bug 1017458
Intermittent OptimisticLockException on set project validation options
Last modified: 2015-07-30 21:14:27 EDT
Created attachment 810206 [details]
Test run log file
Description of problem:
Sometimes selecting a validation option and pressing Update causes an exception.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Sign in as admin
2. Go to project->version
3. Click Edit Version
4. Change a validation option
5. Press Update
In a small number of cases, StaleObjectStateException/OptimisticLockException occurs
Attached log file
Tested 3.5.0-SNAPSHOT (git-server-3.4.2-201-ge0afdde) - no longer an issue
I suspect this may have been caused by the accidental use of MyISAM for some tables.
On second thought, I have been seeing StaleObjectStateException in functional tests, which are probably not using MyISAM (MySQL 5.5.34 should default to InnoDB). I think MyISAM problems must manifest differently.
org.zanata.feature.concurrentedit.ConcurrentAccessTest sometimes triggers these exceptions, especially if you run a few copies at once.
It's looking very much like a thread safety problem. I'll see what I can do, at least for ConcurrentAccessTest.
Migrated; check JIRA for bug status: http://zanata.atlassian.net/browse/ZNTA-373