Open Bug 746464 Opened 13 years ago Updated 12 years ago

Possible race condition in adding custom fields

Categories

(Bugzilla :: Administration, task)

4.0.3
task
Not set
minor

Tracking

()

People

(Reporter: altlist, Unassigned)

Details

I encountered a situation where one of my custom fields, cf_quoted, was not recognized when I attempted to create a new ticket. Turns out while it was correctly defined in the bugs table, it was missing in bz_schema. Deleting the custom field and recreating it fixed the issue. My best guess is that I had created several custom fields at the same time. If I peruse the DB.pm code, I don't see a semaphore to ensure updating bz_schema is atomic. My system is using mod_perl.
Could you update the version field to know which version of Bugzilla you are using?
Severity: normal → minor
Version: unspecified → 4.0.3
Oh, this does seem possible. I'm not sure that transactions, as we have them implemented, would protect us here.
Looks like a duplicate of bug 531243 or at least closely related.
You need to log in before you can comment on or make changes to this bug.