Persistent ID type mismatch?
GoogleCodeExporter opened this issue · comments
Google Code Exporter commented
Seen live on Tinri's computer running `gcelljunction`:
gc3.gc3libs: ERROR: Could not retrieve job 'GcellJunctionTask.2308' (LoadError: Retrieved persistent ID 'GCellJunctionTask.2308' does not match given ID 'GcellJunctionTask.2308'). Ignoring.
Traceback (most recent call last):
File "/Users/tinria/gc3pie/src/gc3libs/cmdline.py", line 673, in _get_jobs
yield self.session.load(jobid)
File "/Users/tinria/gc3pie/src/gc3libs/session.py", line 502, in load
return self.store.load(obj_id)
File "/Users/tinria/gc3pie/src/gc3libs/persistence/filesystem.py", line 144, in load
% (obj.persistent_id, id_))
LoadError: Retrieved persistent ID 'GCellJunctionTask.2308' does not match given ID 'GcellJunctionTask.2308'
There are two problems:
1- the error message is nonsensical (quite likely one of the two IDs is a `str`
and the other one is `gc3libs.persistence.Id` but we cannot see it);
2- if the two IDs do not match in type, then a cast has happened somewhere in
the code, which should not have happened, ever.
Original issue reported on code.google.com by riccardo.murri@gmail.com
on 19 Aug 2014 at 9:30
Google Code Exporter commented
Attaching offending `GCellJunctionTask.2308` file.
Original comment by riccardo.murri@gmail.com
on 19 Aug 2014 at 9:33
Attachments: