Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
ZODB
Commits
44ff889b
Commit
44ff889b
authored
Mar 29, 2013
by
Tres Seaver
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2 from toutpt/master
Improve logging of issue around blob
parents
c327f1c7
27870c2a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
4 deletions
+13
-4
CHANGES.rst
CHANGES.rst
+7
-1
src/ZODB/blob.py
src/ZODB/blob.py
+1
-1
src/ZODB/tests/blob_transaction.txt
src/ZODB/tests/blob_transaction.txt
+2
-2
src/ZODB/tests/testblob.py
src/ZODB/tests/testblob.py
+3
-0
No files found.
CHANGES.rst
View file @
44ff889b
...
...
@@ -2,6 +2,12 @@
Change
History
================
4.0.0
.
dev
(
unreleased
)
======================
-
Include
the
filename
in
the
exception
message
to
support
debugging
in
case
loadBlob
does
not
find
the
file
.
4.0.0
a4
(
2012
-
12
-
17
)
=====================
...
...
@@ -309,7 +315,7 @@ Bugs fixed
their subconnections weren't cleaned up properly.
- ZEO didn't work with IPv6 addrsses.
Added IPv6 support contributed by Martin v. L
ö
wis.
Added IPv6 support contributed by Martin v. L
�wi
s.
- A file storage bug could cause ZEO clients to have incorrect
information about current object revisions after reconnecting to a
...
...
src/ZODB/blob.py
View file @
44ff889b
...
...
@@ -642,7 +642,7 @@ class BlobStorageMixin(object):
"""
filename
=
self
.
fshelper
.
getBlobFilename
(
oid
,
serial
)
if
not
os
.
path
.
exists
(
filename
):
raise
POSKeyError
(
"No blob file
"
,
oid
,
serial
)
raise
POSKeyError
(
"No blob file
at %s"
%
filename
,
oid
,
serial
)
return
filename
def
openCommittedBlobFile
(
self
,
oid
,
serial
,
blob
=
None
):
...
...
src/ZODB/tests/blob_transaction.txt
View file @
44ff889b
...
...
@@ -394,7 +394,7 @@ And we shouldn't be able to read the data that we saved:
>>> blob_storage.loadBlob(blob._p_oid, s1)
Traceback (most recent call last):
...
POSKeyError: 'No blob file'
POSKeyError: 'No blob file
at /var/blobs/0x00/0x039bfdeeb0364777.blob
'
Of course the old data should be unaffected:
...
...
@@ -411,7 +411,7 @@ Similarly, the new object wasn't added to the storage:
>>> blob_storage.loadBlob(blob._p_oid, s2)
Traceback (most recent call last):
...
POSKeyError: 'No blob file'
POSKeyError: 'No blob file
at /var/blobs/0x00/0x039bfdeeb0364777.blob
'
.. clean up
...
...
src/ZODB/tests/testblob.py
View file @
44ff889b
...
...
@@ -682,6 +682,9 @@ def storage_reusable_suite(prefix, factory,
"blob_connection.txt"
,
"blob_importexport.txt"
,
"blob_transaction.txt"
,
setUp
=
setup
,
tearDown
=
zope
.
testing
.
setupstack
.
tearDown
,
checker
=
zope
.
testing
.
renormalizing
.
RENormalizing
([
(
re
.
compile
(
r'/.*/blobs/.*\
.
blob'
),
'<BLOB STORAGE PATH>'
)
]),
optionflags
=
doctest
.
ELLIPSIS
,
))
if
test_packing
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment