https://bugzilla.wikimedia.org/show_bug.cgi?id=69278
Bug ID: 69278 Summary: replace.py hangs Product: Pywikibot Version: core (2.0) Hardware: PC OS: Linux Status: UNCONFIRMED Severity: major Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: bjorn.erik.pedersen@gmail.com Web browser: --- Mobile Platform: ---
Running replace.py with a db-dump from nnwiki now just hangs.
If I hit ctrl-c it seems to gather some pages and handle them OK, but I do not seem to get it to complete the whole XML file.
I reverted to the commit below - and then everything works fine.
0ce8b7eb99f24c9481bbef4bd41196ba0d319e44d
The above is my commit - just wanted to make sure that I didn't introduce this. So it might be fruitful to look at changes coming in after this one.
https://bugzilla.wikimedia.org/show_bug.cgi?id=69278
--- Comment #1 from bep bjorn.erik.pedersen@gmail.com --- I run with "-xml:nndump.xml -namespace:0 -fix:myreplacements"
https://bugzilla.wikimedia.org/show_bug.cgi?id=69278
--- Comment #2 from bep bjorn.erik.pedersen@gmail.com --- Additional notes:
- Not able to reproduce this with small data sets - With a full dump from nnwiki (still a small wiki) it seem to process veeeeeery slowly
See https://nn.wikipedia.org/wiki/Brukar:BepBot/user-fixes.py and the fix "nyno2" that I have tested with.
https://bugzilla.wikimedia.org/show_bug.cgi?id=69278
--- Comment #3 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 152843 had a related patch set uploaded by John Vandenberg: Namespaces initialisation bug
https://gerrit.wikimedia.org/r/152843
https://bugzilla.wikimedia.org/show_bug.cgi?id=69278
Gerrit Notification Bot gerritadmin@wikimedia.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |PATCH_TO_REVIEW Ever confirmed|0 |1
https://bugzilla.wikimedia.org/show_bug.cgi?id=69278
--- Comment #4 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 152843 merged by jenkins-bot: Namespaces initialisation bug
https://gerrit.wikimedia.org/r/152843
https://bugzilla.wikimedia.org/show_bug.cgi?id=69278
Mpaa mpaa.wiki@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mpaa.wiki@gmail.com
--- Comment #5 from Mpaa mpaa.wiki@gmail.com --- Can this be closed now?
https://bugzilla.wikimedia.org/show_bug.cgi?id=69278
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jayvdb@gmail.com Component|General |Other scripts
https://bugzilla.wikimedia.org/show_bug.cgi?id=69278
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |RESOLVED Resolution|--- |FIXED
--- Comment #6 from John Mark Vandenberg jayvdb@gmail.com --- Yes, it worked correctly after this was merged.
pywikipedia-bugs@lists.wikimedia.org