AttributeError: _strptime_time
The following thing occurs with the new couch backend threaded get_doc() method, when many threads are spawned:
2014-04-04 17:41:22+0000 [-] Exception in thread Thread-420:
2014-04-04 17:41:22+0000 [-] Traceback (most recent call last):
2014-04-04 17:41:22+0000 [-] File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
2014-04-04 17:41:22+0000 [-] self.run()
2014-04-04 17:41:22+0000 [-] File "/usr/lib/python2.7/dist-packages/leap/soledad/common/couch.py", line 701, in _get_doc
2014-04-04 17:41:22+0000 [-] attachments=True)[2]
2014-04-04 17:41:22+0000 [-] File "/usr/lib/pymodules/python2.7/couchdb/http.py", line 393, in get_json
2014-04-04 17:41:22+0000 [-] status, headers, data = self.get(*a, **k)
2014-04-04 17:41:22+0000 [-] File "/usr/lib/pymodules/python2.7/couchdb/http.py", line 374, in get
2014-04-04 17:41:22+0000 [-] return self._request('GET', path, headers=headers, **params)
2014-04-04 17:41:22+0000 [-] File "/usr/lib/pymodules/python2.7/couchdb/http.py", line 419, in _request
2014-04-04 17:41:22+0000 [-] credentials=self.credentials)
2014-04-04 17:41:22+0000 [-] File "/usr/lib/pymodules/python2.7/couchdb/http.py", line 316, in request
2014-04-04 17:41:22+0000 [-] self._clean_cache()
2014-04-04 17:41:22+0000 [-] File "/usr/lib/pymodules/python2.7/couchdb/http.py", line 324, in _clean_cache
2014-04-04 17:41:22+0000 [-] ls = sorted(self.cache.iteritems(), key=cache_sort)
2014-04-04 17:41:22+0000 [-] File "/usr/lib/pymodules/python2.7/couchdb/http.py", line 84, in cache_sort
2014-04-04 17:41:22+0000 [-] t = time.mktime(time.strptime(i[1][1]['Date'][5:-4], '%d %b %Y %H:%M:%S'))
2014-04-04 17:41:22+0000 [-] AttributeError: _strptime_time
It possibly has to do with the following:
(from redmine: created on 2014-04-04, closed on 2014-04-04)