-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a way to retrieve raw extensions data #183
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,8 @@ class FileStorageTests( | |
ReadOnlyStorage.ReadOnlyStorage | ||
): | ||
|
||
supports_extension_bytes = True | ||
|
||
def open(self, **kwargs): | ||
self._storage = ZODB.FileStorage.FileStorage('FileStorageTests.fs', | ||
**kwargs) | ||
|
@@ -77,7 +79,14 @@ def checkLongMetadata(self): | |
except POSException.StorageError: | ||
pass | ||
else: | ||
self.fail("expect long user field to raise error") | ||
self.fail("expect long description field to raise error") | ||
try: | ||
self._dostore(extension={s: 1}) | ||
except POSException.StorageError: | ||
pass | ||
else: | ||
self.fail("expect long extension field to raise error") | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jimfulton says:
There is already-existing FileStorage test which checks if a commit with long metadata fails: Since the commits in FileStorage tests are performed via |
||
|
||
def check_use_fsIndex(self): | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jimfulton says:
I don't know whether any test fails without it, but since it is FS recover to me it looks logical that if e.g. extension is corrupt, it is better to drop it, but still try to recover rest of transaction metadata.
In any way I would preserve current semantic within this patch and try to do one step at a time but well.
BTW this code is from you from 2001:
2d0d8c08#diff-b18ad2268d655f3885a3b21941d8f8f9R209