Author eric.snow
Recipients Lukasa, Mark.Shannon, eric.snow, icordasc, jayvdb, larry, rhettinger, xZise
Date 2015-07-30.03:07:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1438225629.67.0.00135269634718.issue24667@psf.upfronthosting.co.za>
In-reply-to
Content
It's starting to look like this is threading-related.  There's a single requests.Session defined as a module global in pywikibot.comms.http which is shared by all threads handling requests.  requests.Session uses OrderedDict for an LRU cache for redirects.  That's where we're running into trouble.

So it seems that I missed a spot that is susceptible to issues with threading (not necessarily in pop/popitem).  The catch is that it's not very racy.  The failure is reproducing quite consistently.

I'm going to continue investigating and constructing a simple reproducer.
History
Date User Action Args
2015-07-30 03:07:09eric.snowsetrecipients: + eric.snow, rhettinger, larry, Mark.Shannon, icordasc, Lukasa, xZise, jayvdb
2015-07-30 03:07:09eric.snowsetmessageid: <1438225629.67.0.00135269634718.issue24667@psf.upfronthosting.co.za>
2015-07-30 03:07:09eric.snowlinkissue24667 messages
2015-07-30 03:07:09eric.snowcreate