/srv/irclogs.ubuntu.com/2014/10/30/#launchpad-dev.txt

kb9vqfwgrant: ping00:42
* kb9vqf found some of the custom upgrade python...sitting in the garbage collector....01:58
wgrantkb9vqf: You're running an old version of garbo?02:24
wgrantAll the post-2209 bits should *probably* be there, if you can get them to run.02:25
kb9vqfwgrant: hi there!02:27
kb9vqfany chance of getting the SQL or should I just plow ahead?  I'm waiting at 2209-40 looking at the garbo code to proceed02:27
kb9vqf(and yes I pulled an old rev from bzr for 2209-40)02:28
wgrantWhich garbo jobs have you run so far?02:28
wgrantAnd what SQL have you run for 2209-00-1 and 2209-01-1?02:29
kb9vqfwgrant: No garbo yet, you popped on just as I was setting up the run02:31
kb9vqfLet me grab the SQL I ran...02:31
kb9vqf(this is all on a test system so I can blow it away and start over if needed)02:31
kb9vqfUPDATE 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 FR02:32
kb9vqfHmm IRC ate that02:33
kb9vqflet me try again....02:33
kb9vqfUPDATE sourcepackagepublishinghistory set sourcepackagename = (SELECT sourcepackagename FROM sourcepackagerelease WHERE sourcepackagerelease.id = sourcepackagepublishinghistory.id);02:33
kb9vqfDELETE FROM sourcepackagepublishinghistory WHERE sourcepackagepublishinghistory.sourcepackagename IS NULL;02:33
kb9vqfUPDATE binarypackagepublishinghistory set binarypackagename = (SELECT binarypackagename FROM binarypackagerelease WHERE binarypackagerelease.id = binarypackagepublishinghistory.id);02:33
kb9vqfDELETE FROM binarypackagepublishinghistory WHERE binarypackagepublishinghistory.binarypackagename IS NULL;02:33
kb9vqfwgrant: ^^02:34
kb9vqfThe database is currently sitting at 2209-40-1202:34
kb9vqf*2209-40-202:34
wgrantkb9vqf: Why are those DELETEs there?02:34
wgrantEvery SPPH has a BPR, so they should never delete anything.02:34
kb9vqfwgrant: Over time some orphan rows crept in, probably during one of the numerous crashes02:35
wgrantOh, no, your query is totally wrong :)02:35
wgrantUPDATE sourcepackagepublishinghistory set sourcepackagename = (SELECT sourcepackagename FROM sourcepackagerelease  WHERE sourcepackagerelease.id = sourcepackagepublishinghistory.id);02:35
kb9vqfok :)02:35
wgrantSPR.id != SPPH.id02:35
wgrantThe condition should be 'WHERE sourcepackagerelease.id = sourcepackagepublishinghistory.sourcepackagerelease'02:35
wgrantAnd similar with BPPH.02:35
kb9vqfOK, well I did what I could with my limited knowledge of Launchpad :-P02:36
kb9vqfLooks like I'll be reloading the test DB then02:36
kb9vqfI can bring it back up to schema 2208 pretty quickly...having the proper SQL to execute would save lots of time ;-)02:37
kb9vqfthat is, time going forward applying 2209-00- etc.02:37
kb9vqfwgrant: wait a minute, the SQL you posted is identical to mine02:38
kb9vqfnvm02:39
kb9vqfI can't read02:39
kb9vqf:-P02:39
* kb9vqf is juggling two tasks ATM...be back in 10 mins when I can concentrate soeley on this02:39
kb9vqfwgrant: 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?02:58
kb9vqfwgrant: I'm back; if you want to work on this now give me a poke :-)03:01
wgrantkb9vqf: http://paste.ubuntu.com/8741031/03:02
kb9vqfThanks!  That'll save a bunch of time03:02
kb9vqfwgrant: 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 for03:03
wgrantThey'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:04
wgrantNeither of which are likely to affect you.03:05
kb9vqfRight, 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 process03:06
wgrantIf you can get it to run, then by all means.03:06
wgrantYou 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:06
kb9vqfYeah I was looking at that and aborted real fast as soon as I saw the python03:07
kb9vqfI think I can get it to run, so I'll use that approach03:08
kb9vqfThanks again; I'll apply these patches and should know sometime tomorrow if it all worked03:08
wgrant:)03:08
* kb9vqf goes off to redo the sourcepackagename column03:09
=== mpt__ is now known as mpt

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!