﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
1039	[patch] file cache blows up time to time	eugene@…	Jacob	"I am getting weird errors ~once a week:

{{{
Traceback (most recent call last):

 File ""/home/elazutkin/djsrc/django/core/handlers/base.py"", line 74, in get_response
   response = callback(request, *callback_args, **callback_kwargs)

 File ""/home/elazutkin/djsrc/django/utils/decorators.py"", line 12, in _wrapped_view
   result = middleware.process_request(request)

 File ""/home/elazutkin/djsrc/django/middleware/cache.py"", line 40, in process_request
   cache_key = get_cache_key(request, self.key_prefix)

 File ""/home/elazutkin/djsrc/django/utils/cache.py"", line 125, in get_cache_key
   headerlist = cache.get(cache_key, None)

 File ""/home/elazutkin/djsrc/django/core/cache.py"", line 299, in get
   exp = pickle.load(f)

EOFError
}}}

I have no idea how it happens. Maybe a processing thread dies when connection closes prematurely for whatever reason before it finished writing. I've added EOFError to the long list of allowable exceptions. Sometimes I feel we need to go back to the original implementation and treat '''all''' errors during cache retrieval as ""no cached data""."	defect	closed	Core (Cache system)		normal	fixed			Ready for checkin	1	0	0	0	0	0
