[00:42] wgrant: ping [01:58] * kb9vqf found some of the custom upgrade python...sitting in the garbage collector.... [02:24] kb9vqf: You're running an old version of garbo? [02:25] All the post-2209 bits should *probably* be there, if you can get them to run. [02:27] wgrant: hi there! [02:27] any chance of getting the SQL or should I just plow ahead? I'm waiting at 2209-40 looking at the garbo code to proceed [02:28] (and yes I pulled an old rev from bzr for 2209-40) [02:28] Which garbo jobs have you run so far? [02:29] And what SQL have you run for 2209-00-1 and 2209-01-1? [02:31] wgrant: No garbo yet, you popped on just as I was setting up the run [02:31] Let me grab the SQL I ran... [02:31] (this is all on a test system so I can blow it away and start over if needed) [02:32] UPDATE sourcepackagepublishinghistory set sourcepackagename = (SELECT sourcepackagename FROM sourcepackagerelease WHERE sourcepackagerelease.id = sourcepac$ DELETE FROM sourcepackagepublishinghistory WHERE sourcepackagepublishinghistory.sourcepackagename IS NULL; UPDATE binarypackagepublishinghistory set binarypackagename = (SELECT binarypackagename FROM binarypackagerelease WHERE binarypackagerelease.id = binarypac$ DELETE FR [02:33] Hmm IRC ate that [02:33] let me try again.... [02:33] UPDATE sourcepackagepublishinghistory set sourcepackagename = (SELECT sourcepackagename FROM sourcepackagerelease WHERE sourcepackagerelease.id = sourcepackagepublishinghistory.id); [02:33] DELETE FROM sourcepackagepublishinghistory WHERE sourcepackagepublishinghistory.sourcepackagename IS NULL; [02:33] UPDATE binarypackagepublishinghistory set binarypackagename = (SELECT binarypackagename FROM binarypackagerelease WHERE binarypackagerelease.id = binarypackagepublishinghistory.id); [02:33] DELETE FROM binarypackagepublishinghistory WHERE binarypackagepublishinghistory.binarypackagename IS NULL; [02:34] wgrant: ^^ [02:34] The database is currently sitting at 2209-40-12 [02:34] *2209-40-2 [02:34] kb9vqf: Why are those DELETEs there? [02:34] Every SPPH has a BPR, so they should never delete anything. [02:35] wgrant: Over time some orphan rows crept in, probably during one of the numerous crashes [02:35] Oh, no, your query is totally wrong :) [02:35] UPDATE sourcepackagepublishinghistory set sourcepackagename = (SELECT sourcepackagename FROM sourcepackagerelease WHERE sourcepackagerelease.id = sourcepackagepublishinghistory.id); [02:35] ok :) [02:35] SPR.id != SPPH.id [02:35] The condition should be 'WHERE sourcepackagerelease.id = sourcepackagepublishinghistory.sourcepackagerelease' [02:35] And similar with BPPH. [02:36] OK, well I did what I could with my limited knowledge of Launchpad :-P [02:36] Looks like I'll be reloading the test DB then [02:37] I can bring it back up to schema 2208 pretty quickly...having the proper SQL to execute would save lots of time ;-) [02:37] that is, time going forward applying 2209-00- etc. [02:38] wgrant: wait a minute, the SQL you posted is identical to mine [02:39] nvm [02:39] I can't read [02:39] :-P [02:39] * kb9vqf is juggling two tasks ATM...be back in 10 mins when I can concentrate soeley on this [02:58] wgrant: I got to thinking...I don't need to dump/reload the DB on the test system; I'll worry about fixing up those two columns tomorrow. How should we proceed on the rest of the migration? [03:01] wgrant: I'm back; if you want to work on this now give me a poke :-) [03:02] kb9vqf: http://paste.ubuntu.com/8741031/ [03:02] Thanks! That'll save a bunch of time [03:03] wgrant: I notice you set searchable* to empty. Will this impact the system with regard to the old published packages? [03:03] * kb9vqf is not sure what the searchable fields are used for [03:04] They're used for two things: https://launchpad.net/ubuntu/vivid/+queue (only for the primary and partner archives), and the getPackageUploads API call when using text search terms. [03:05] Neither of which are likely to affect you. [03:06] Right, OK. I ask because I had the modified garbage collector ready to run, so if there's any advantage I'll just fire it off during the migration process [03:06] If you can get it to run, then by all means. [03:06] You should see no negative effects from either approach for this patch. This is the only one where I took a shortcut, as it was somewhat difficult to implement it properly in pure SQL. [03:07] Yeah I was looking at that and aborted real fast as soon as I saw the python [03:08] I think I can get it to run, so I'll use that approach [03:08] Thanks again; I'll apply these patches and should know sometime tomorrow if it all worked [03:08] :) [03:09] * kb9vqf goes off to redo the sourcepackagename column === mpt__ is now known as mpt