Bug #5011
Pithos backend open hashfile bug
Status: | Closed | Start date: | 01/30/2014 | |
---|---|---|---|---|
Priority: | Medium | Due date: | ||
Assignee: | Chrysostomos Nanakos | % Done: | 0% |
|
Category: | Pithos | Spent time: | - | |
Target version: | 0.15 |
Description
"/usr/lib/python2.7/dist-packages/pithos/backends/lib/hashfiler/filemapper.py",
line 83, in map_retr
with self._get_rear_map(maphash, 0) as rmap:
File
"/usr/lib/python2.7/dist-packages/pithos/backends/lib/hashfiler/context_file.py",
line 145, in enter
fdesc = open(name, 'rb+')
IOError: [Errno 13] Permission denied:
'/srv/pithos/data/maps/*/*/*/********
snf-pithos-backend tries to open a hashfile in RW mode in a filesystem which has no access. The exception handling doesn't seem to check the specific error code (EACCES) leading to an unhandled and misleading error.
Associated revisions
pithos: Remove 'create' flag from the mapper
The file access mode is now chosen from the file mapper or blocker
according to the function that is being used, i.e., read or write
an object.
Refs #5011
pithos: Remove 'create' flag from the mapper
The file access mode is now chosen from the file mapper or blocker
according to the function that is being used, i.e., read or write
an object.
Refs #5011
History
#1 Updated by Chrysostomos Nanakos over 9 years ago
- Status changed from New to Closed