Last modified: 2013-12-18 14:47:39 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57844, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55844 - Add a new field, rc_source, to the recentchanges table on wmf wikis
Add a new field, rc_source, to the recentchanges table on wmf wikis
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Sean Pringle
: schema-change
Depends on:
Blocks: 49188
  Show dependency treegraph
 
Reported: 2013-10-17 17:28 UTC by Erik Bernhardson
Modified: 2013-12-18 14:47 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Erik Bernhardson 2013-10-17 17:28:08 UTC
Short description:

Add a new field which will be replacing rc_type to allow various sources of recentchanges rows to identify themselves without requiring registration for a numeric constant. 

We will not be migrating any existing data into this field, rather we will let it run for a month with the linked patch until the time based pruning of recentchanges deletes all rows that do not have the new field populated.

Which wikis are affected:

all

Which tables:

recentchanges

What is the change to those tables:

ALTER TABLE recentchanges ADD rc_source VARBINARY(16) NULL DEFAULT
NULL;

Links to gerrit changes and/or other related bug reports.

https://gerrit.wikimedia.org/r/#/c/85787/
- This change is accepted from an engineering fstandpoint, now ready for production db to be updated.
Comment 1 Sean Pringle 2013-10-28 02:21:48 UTC
Schema change has been applied to all WMF wikis.
Comment 2 Kevin Israel (PleaseStand) 2013-11-02 08:25:37 UTC
(In reply to comment #1)
> Schema change has been applied to all WMF wikis.

Apparently not, making Gerrit change #93117 necessary:

[19:14:27] <grrrit-wm>	 (03Merged) 10jenkins-bot: testwiki and test2wiki to 1.23wmf2 [operations/mediawiki-config] - 10https://gerrit.wikimedia.org/r/93093 (owner: 10Reedy)
...
[19:37:10] <marktraceur>	 Reedy: Database error on trying to upload to testwiki
[19:37:22] <marktraceur>	 "1054 Unknown column 'rc_source' in 'field list' (10.64.16.27)"
...
[20:06:02] <Reedy>	 echo "explain recentchanges;" | sudo -u apache foreachwiki sql.php | grep -c rc_source
...
[20:44:33] <Reedy>	 reedy@tin:/a/common$ grep -c rc_source rc.sql
[20:44:33] <Reedy>	 158
[20:44:33] <Reedy>	 reedy@tin:/a/common$ grep -c rc_params rc.sql
[20:44:33] <Reedy>	 879
[20:44:33] <Reedy>	 reedy@tin:/a/common$
[20:44:41] <aude>	 hmmmm
[20:45:15] <Reedy>	 where rc.sql is the output from explain recentchanges; via sql.php
...
[22:03:25] <Reedy>	 http://p.defau.lt/?zCJx0jvocevdune_nLymMg
[22:03:26] <Reedy>	 That's the list
[22:04:13] <aude>	 strange
[22:05:28] <Reedy>	 It's not even all the wikipedias

Of the listed wikis, testwiki, test2wiki, mediawikiwiki, and testwikidatawiki only have the new column because Reedy added it using ALTER TABLE.
Comment 3 Sean Pringle 2013-11-04 03:22:46 UTC
This was a bug in the OSC wrapper script used to feed our all.dblist to pt-online-schema-change, where it (correctly) aborted in certain conditions yet did not log the fact sufficiently well.

The script has been fixed plus an extra audit stage added, and then rerun on recentchanges.rc_source. All wikis now have that field.
Comment 4 Andre Klapper 2013-11-22 15:29:51 UTC
Is this fixed as per your last comment, or is there more work left to do?
Comment 5 Andre Klapper 2013-12-18 14:47:39 UTC
No reply. Assuming the reopening reason in comment 2 was fixed by comment 3, and closing again.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links