It would appear that the dewiki replica on toolserver is experiencing significant corruption.
SELECT count(el_to) FROM externallinks JOIN page ON el_from=page_id WHERE page_title='Fabrixx' AND page_namespace=0;
returns 1346 rows
I just loaded the recent dumps locally and same query returns 13 rows, which appears to be the correct result.
This is just an example, the condition occurs on many pages. Either *links rows have not been deleted.. or they have been inserted to the wrong id or some other problem which would cause a relational integrity violation with respect to page table.
I would be surprised if this corruption was limited to externallinks.
Gregory Maxwell schrieb:
It would appear that the dewiki replica on toolserver is experiencing significant corruption.
SELECT count(el_to) FROM externallinks JOIN page ON el_from=page_id WHERE page_title='Fabrixx' AND page_namespace=0;
returns 1346 rows
I just loaded the recent dumps locally and same query returns 13 rows, which appears to be the correct result.
This is just an example, the condition occurs on many pages. Either *links rows have not been deleted.. or they have been inserted to the wrong id or some other problem which would cause a relational integrity violation with respect to page table.
I would be surprised if this corruption was limited to externallinks.
The same query returns a better result to me now (yesterday it returned Greg's result):
mysql> SELECT count(el_to) FROM dewiki_p.externallinks JOIN dewiki_p.page ON el_from=page_id WHERE page_title='Fabrixx' AND page_namespace=0\G *************************** 1. row *************************** count(el_to): 14 1 row in set (0.00 sec)
-- Leon
On 9/2/06, Leon Weber leon.weber@leonweber.de wrote:
The same query returns a better result to me now (yesterday it returned Greg's result):
mysql> SELECT count(el_to) FROM dewiki_p.externallinks JOIN dewiki_p.page ON el_from=page_id WHERE page_title='Fabrixx' AND page_namespace=0\G *************************** 1. row *************************** count(el_to): 14 1 row in set (0.00 sec)
Yes, the page has been resaved since. Other pages are just as bad.
SELECT count(el_to) FROM dewiki_p.externallinks JOIN dewiki_p.page ON el_from=page_id WHERE page_title='KZ_Ladelund' and page_namespace=0; +--------------+ | count(el_to) | +--------------+ | 1201 | +--------------+ 1 row in set (0.41 sec)
Unfortunately this is just evidence that it may not be one-time corruption.
Gregory Maxwell schrieb:
On 9/2/06, Leon Weber leon.weber@leonweber.de wrote:
The same query returns a better result to me now (yesterday it returned Greg's result):
mysql> SELECT count(el_to) FROM dewiki_p.externallinks JOIN dewiki_p.page ON el_from=page_id WHERE page_title='Fabrixx' AND page_namespace=0\G *************************** 1. row *************************** count(el_to): 14 1 row in set (0.00 sec)
Yes, the page has been resaved since. Other pages are just as bad.
SELECT count(el_to) FROM dewiki_p.externallinks JOIN dewiki_p.page ON el_from=page_id WHERE page_title='KZ_Ladelund' and page_namespace=0; +--------------+ | count(el_to) | +--------------+ | 1201 | +--------------+ 1 row in set (0.41 sec)
I've asked Tim Starling to run that query on one of the live DB servers. It returns 1201 there. His current guess is a software bug.
--Leon
On 02/09/06, Leon Weber leon.weber@leonweber.de wrote:
I've asked Tim Starling to run that query on one of the live DB servers. It returns 1201 there. His current guess is a software bug.
Ask him to predict next week's lottery numbers, while he's there.
Rob Church
toolserver-l@lists.wikimedia.org