Closed Bug 600216 Opened 15 years ago Closed 15 years ago

Migration.php strands users on db connection fail

Categories

(Cloud Services :: Server: Other, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: zandr, Unassigned)

Details

(Whiteboard: [qa-])

Attachments

(1 file)

As it stands now, if migration.php can't connect to the database server, it simply errors out, leaving the user being migrated stranded on the bogus/migration node. It should clean up and put them back on their original node.
I created a patch with the error Zandr gave us on IRC: moving XXX (to XXX.services.mozilla.com)<p>unable to connect to source db: SQLSTATE[00000] [1040] Too many connections</p> This patch will put back in LDAP the old node in case mysql_move_user() fails
Attachment #479068 - Flags: review?(telliott)
Attachment #479068 - Flags: review?(telliott) → review+
Telliott pushed http://hg.mozilla.org/services/admin-scripts/rev/9455cf3f257b In use now, does what it says on the tin.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: