Page MenuHomePhabricator

dumps - enwiki XML dump violates UNIQUE KEY constraint
Closed, ResolvedPublic


0) Problem

The enwiki-20150602-stub-meta-current.xml.gz violates UNIQUE KEY constraint.
This makes trouble for INSERT commands.

  1. Database schema

page_id int(10) unsigned NOT NULL AUTO_INCREMENT,
page_namespace int(11) NOT NULL,
page_title varbinary(255) NOT NULL,
PRIMARY KEY (page_id),
UNIQUE KEY name_title (page_namespace,page_title), <-- this constraint
KEY page_random (page_random),
KEY page_len (page_len),
KEY page_redirect_namespace_len (page_is_redirect,page_namespace,page_len),
KEY page_latest (page_latest)

  1. Dump contents

There are two entries for <title>Lauren Price</title><ns>0</ns>.

<title>Lauren Price</title>
<username>ClueBot NG</username>
<comment>Reverting possible vandalism by [[Special:Contributions/|]] to version by Tymon.r. False positive? [[User:ClueBot NG/FalsePositives|Report it]]. Thanks, [[User:ClueBot NG|ClueBot NG]]. (2261137) (Bot)</comment>
<text id="670477152" bytes="273" />
<title>Lauren Price</title>
<comment>Disambiguation page should not have just been overwritten like this</comment>
<text id="670537500" bytes="2450" />

  1. Recommendation

Action: Please delete the first of these (page_id=41813333).
Reason: The text (old_id=670477152) looks like a disambiguation page. Yet there already exists a similar disambiguation page <title>Lauren Price (disambiguation)</title><ns>0</ns>.

Event Timeline

wpmirrordev assigned this task to ArielGlenn.
wpmirrordev raised the priority of this task from to Normal.
wpmirrordev updated the task description. (Show Details)
wpmirrordev added a subscriber: wpmirrordev.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 12 2015, 9:57 AM
Umherirrender added a subscriber: Umherirrender.EditedAug 12 2015, 3:31 PM no longer exists on en.wp exists

41813333 was deleted while the dump was created, and the dump takes some time so new created pages are added at end, while deleted pages could not deleted from dump when already dumped.

The dump is not a snapshot for a point of time in the past (that would need extra handling or a stopped slave)

wpmirrordev closed this task as Resolved.Aug 12 2015, 10:36 PM