r104701 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104700‎ | r104701 | r104702 >
Date:16:57, 30 November 2011
Author:catrope
Status:ok
Tags:
Comment:
1.18wmf1: Another live debugging hack for bug 31576
Modified paths:
  • /branches/wmf/1.18wmf1/includes/LinksUpdate.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/includes/LinksUpdate.php
@@ -403,6 +403,18 @@
404404 foreach( $this->mTemplates as $ns => $dbkeys ) {
405405 $diffs = isset( $existing[$ns] ) ? array_diff_key( $dbkeys, $existing[$ns] ) : $dbkeys;
406406 foreach ( $diffs as $dbk => $id ) {
 407+ // HACK for investigating bug 31576 --Roan
 408+ if ( in_array( $dbk, array( 'NAMESPACE', 'PAGENAME', 'SERVER', 'CONTENTLANGUAGE', 'PAGENAMEE' ) ) ) {
 409+ $now = wfTimestampNow();
 410+ $hostname = wfHostname();
 411+ wfErrorLog( "Bad template $dbk in page [[{$this->mTitle->getPrefixedText()}]] timestamp $now generated by $hostname callers " . wfGetAllCallers( false ) . "\n", 'udp://10.0.5.8:8420/bug31576' );
 412+ ob_start();
 413+ debug_print_backtrace();
 414+ $backtrace = ob_get_contents();
 415+ ob_end_clean();
 416+ $backtrace = substr( $backtrace, -49999 );
 417+ wfErrorLog( $backtrace . "\n", 'udp://10.0.5.8:8420/bug31576bt' );
 418+ }
407419 $arr[] = array(
408420 'tl_from' => $this->mId,
409421 'tl_namespace' => $ns,

Follow-up revisions

RevisionCommit summaryAuthorDate
r1047221.18wmf1: Another logging hack for bug 31576catrope19:26, 30 November 2011
r104732Add RefreshLinks class to the AutoLoader, I'll need it for my cleanup script ...catrope20:03, 30 November 2011
r104758Script for cleaning up the mess left behind by bug 31576. Still haven't figur...catrope21:49, 30 November 2011
r105964Temporary workaround for bug 31576. The logs show that once every hour or so,...tstarling01:14, 13 December 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r1040591.18wmf1: Live hacks for investigating bug 31576: add server name to pcache c...catrope18:04, 23 November 2011

Status & tagging log