Closed Bug 934325 Opened 12 years ago Closed 12 years ago

weekly socorro1.dev.db.phx1 refresh threw error while trying to dump relation daily_hangs

Categories

(Data & BI Services Team :: DB: MySQL, task)

x86
macOS
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mpressman, Assigned: mpressman)

Details

From the log output ERROR: relation "daily_hangs" does not exist LINE 1: COPY ( SELECT * FROM daily_hangs WHERE report_date >= '2013... It looks like daily_hangs no longer exists. This prevented the extractdb.tgz file from being built and subsequently decompressed while loading the minidb.
This portion of the python script compresses the individual dumps into a compressed file that is then loaded into the dev instance. Since the individual dumps were not removed, when it came time to load them it succeeded as they were in the same location where they would have been if they had been unarchived. Since the script did complete successfully in dumping a scrubbed minidb dump, everything may be just fine, but I wanted to document the error in case there are any issues not noticed.
Adding a needinfo so that Selena is aware of the daily_hangs table not existing.
Flags: needinfo?(sdeckelmann)
That table was removed September 6, 2012: https://github.com/mozilla/socorro/commit/5a318a1a8f40a004cf53926093b399080eed1fb7 Let me know if you need any particular help from m.e
Flags: needinfo?(sdeckelmann)
What are next steps? Remove that part of the python script?
(In reply to Sheeri Cabral [:sheeri] from comment #4) > What are next steps? Remove that part of the python script? Please let me know: * which script this is * where it is in revision control * how it is called (cron? on which machine?) * how it is configured (configuration file? or maybe just parameters passed to cron
Selena - that was a comment for Matt...I'm confused, are you suggesting you want to put in the fix for this? I figured as the DB admins we'd fix it, trying not to put more work on your plate when it's clearly administrative stuff that we can handle. But just in case you wanted to know: The script that has the daily_hangs table in it is: /data/socorro/application/scripts/staging/extractMiniDB.py It's called by cron on the dev server - /etc/cron.d/dev_refresh, which calls /var/lib/pgsql/bin/dev_refresh.sh, which calls the extractMiniDB.py script. Currently it's in revision control in the postgres2 module; we haven't yet moved it to the postgres module, which we're in the process of doing in another bug. But that's all for Matt and myself to handle. The only information we needed from you was if the lack of daily_hangs table was a problem, which it is not.
(In reply to Selena Deckelmann :selenamarie :selena from comment #3) > That table was removed September 6, 2012: > https://github.com/mozilla/socorro/commit/ > 5a318a1a8f40a004cf53926093b399080eed1fb7 > > Let me know if you need any particular help from m.e Nope, we got this. Thanx!
Removing cc of selena as this is not work on her plate (as per an IRC convo with her).
Assignee: server-ops-database → mpressman
There are two places where the daily_hangs view is referenced in the python extract and load scripts. The first was identified and removed from extractMiniDB.py. The second is in loadMiniBonDev.py. I have removed the reference from loadMiniBonDev.py and I'm now running loadMiniBonDev.py on socorro1.dev.db.phx1 to get the data loaded.
Blocks: 935635
loadMiniBonDev.py ran successfully after removing the reference to daily_hangs
No longer blocks: 935635
Changed dev_refresh.sh to reference modified extractMiniDB.py and loadMiniBonDev.py that had removed reference to the daily_hangs matview and successfully run in bug 935635
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Product: mozilla.org → Data & BI Services Team
You need to log in before you can comment on or make changes to this bug.