Commit dab0888c authored by Jeremy Hylton's avatar Jeremy Hylton

Add logging for EOFError seen overnight (and occasionally before).

parent 863225da
...@@ -84,6 +84,7 @@ old class. ...@@ -84,6 +84,7 @@ old class.
import cPickle import cPickle
import cStringIO import cStringIO
import logging
from persistent import Persistent from persistent import Persistent
from persistent.wref import WeakRefMarker, WeakRef from persistent.wref import WeakRefMarker, WeakRef
...@@ -378,8 +379,13 @@ class BaseObjectReader: ...@@ -378,8 +379,13 @@ class BaseObjectReader:
def getState(self, pickle): def getState(self, pickle):
unpickler = self._get_unpickler(pickle) unpickler = self._get_unpickler(pickle)
unpickler.load() # skip the class metadata try:
return unpickler.load() unpickler.load() # skip the class metadata
return unpickler.load()
except EOFError, msg:
log = logging.getLogger("zodb.serialize")
log.exception("Unpickling error: %r", pickle)
raise
def setGhostState(self, obj, pickle): def setGhostState(self, obj, pickle):
state = self.getState(pickle) state = self.getState(pickle)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment