Closed Bug 565289 Opened 14 years ago Closed 14 years ago

SUMO down: SQL error with FORCE INDEX

Categories

(mozilla.org Graveyard :: Server Operations, task)

All
Other
task
Not set
blocker

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mrz, Assigned: fox2mike)

Details

Attachments

(2 files)

Attached file curl output
      No description provided.
Attached image screenshot
Assignee: server-ops → shyam
Severity: minor → blocker
Looks like the code's going into tiki-setup_base.php and spewing that error.  No app level debugging that I can find.
At webroot/lib/userslib.php:1739 a FORCE INDEX clause (see line 1715) is causing the query to fail. No idea why this just started, we've never seen it on stage, and it was fine for several hours before failing.

We've patched the query on production and will investigate this today.
Looks like the problem is: FORCE INDEX (permName) requires a *key*, not a column, named `permName`. Line 137303 of webroot/db/sumo_clean_schema.sql creates a UNIQUE key named `permName` on the column `permName`.

Our database conversion script had to drop the UNIQUE key to do the charset conversion but did not re-add it.

It looks like this bug was hidden by the tiki file cache--though clearing it is part of the normal cache-clearing steps so I'm not 100% sure why we didn't start seeing it immediately.

I'm guessing we didn't see it on stage because we didn't do a full cache clear after doing the database conversion, so this query never ran.
Summary: sumo failure → SUMO down: SQL error with FORCE INDEX
This is patched and working in production. Filed bug 565320 to fix it permanently. Also filed bug 565317 to help keep bugs like this from hiding on stage.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
For the record, I'm fairly certain this is the same problem that initially presented after the first push last Thursday.
Product: mozilla.org → mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: