https://dev.arvados.org/https://dev.arvados.org/favicon.ico?15576888422016-03-16T20:04:14ZArvadosArvados - Bug #8712: [FUSE] Read-only collections appear empty after they are evicted from the cachehttps://dev.arvados.org/issues/8712?journal_id=366962016-03-16T20:04:14ZBrett Smithbrett.smith@curii.com
<ul><li><strong>Category</strong> set to <i>FUSE</i></li><li><strong>Assigned To</strong> set to <i>Peter Amstutz</i></li><li><strong>Target version</strong> set to <i>2016-03-30 sprint</i></li></ul> Arvados - Bug #8712: [FUSE] Read-only collections appear empty after they are evicted from the cachehttps://dev.arvados.org/issues/8712?journal_id=371232016-03-30T18:55:29ZBrett Smithbrett.smith@curii.com
<ul><li><strong>Target version</strong> changed from <i>2016-03-30 sprint</i> to <i>2016-04-13 sprint</i></li></ul> Arvados - Bug #8712: [FUSE] Read-only collections appear empty after they are evicted from the cachehttps://dev.arvados.org/issues/8712?journal_id=371392016-03-30T19:25:36ZBrett Smithbrett.smith@curii.com
<ul><li><strong>Subject</strong> changed from <i>Disappearing files in keep mount</i> to <i>[FUSE?] Disappearing files in keep mount</i></li></ul> Arvados - Bug #8712: [FUSE] Read-only collections appear empty after they are evicted from the cachehttps://dev.arvados.org/issues/8712?journal_id=373392016-04-04T14:34:29ZPeter Amstutzpeter.amstutz@curii.com
<ul></ul><p>The bug is when a read-only collection has been spilled from the cache and then needs to be reloaded:</p>
<pre>
2016-04-04 10:25:02 arvados.arvados_fuse[10263] DEBUG: Updating None
2016-04-04 10:25:02 arvados.arvados_fuse[10263] ERROR: arv-mount b1eb3a7572b5fbbf04335bbf0ade7209+85: error
Traceback (most recent call last):
File "/home/peter/work/scripts/venv/local/lib/python2.7/site-packages/arvados_fuse-0.1.20160322160927-py2.7.egg/arvados_fuse/fusedir.py", line 410, in update
self.collection.update()
File "/home/peter/work/scripts/venv/local/lib/python2.7/site-packages/arvados_python_client-0.1.20160322001610-py2.7.egg/arvados/arvfile.py", line 238, in synchronized_wrapper
return orig_func(self, *args, **kwargs)
File "/home/peter/work/scripts/venv/local/lib/python2.7/site-packages/arvados_python_client-0.1.20160322001610-py2.7.egg/arvados/retry.py", line 153, in num_retries_setter
return orig_func(self, *args, **kwargs)
File "/home/peter/work/scripts/venv/local/lib/python2.7/site-packages/arvados_python_client-0.1.20160322001610-py2.7.egg/arvados/collection.py", line 1228, in update
self.apply(baseline.diff(other))
File "/home/peter/work/scripts/venv/local/lib/python2.7/site-packages/arvados_python_client-0.1.20160322001610-py2.7.egg/arvados/arvfile.py", line 389, in must_be_writable_wrapper
raise IOError(errno.EROFS, "Collection is read-only.")
IOError: [Errno 30] Collection is read-only.
</pre> Arvados - Bug #8712: [FUSE] Read-only collections appear empty after they are evicted from the cachehttps://dev.arvados.org/issues/8712?journal_id=373652016-04-04T20:23:32ZNico César
<ul></ul><p>reviewing 55778ad90a9b869f514e729b3f85c12383f4e2a7</p>
<p>I'm confused about if clear() should return a boolean or not...</p>
<p>because:</p>
<p>(class Directory) clear() line 166 does a</p>
<pre>
if not oldentries[n].clear(force)
</pre>
<p>and _entries dict could contain a CollectionDirectory correct?</p>
<p>if that's the case code should be something like:</p>
<pre>
def clear(self, force=False):
rtn = super(CollectionDirectoryBase, self).clear(force)
self.collection = None
return rtn
</pre>
<p>and tests should include more complex examples of a full Directory._entries</p> Arvados - Bug #8712: [FUSE] Read-only collections appear empty after they are evicted from the cachehttps://dev.arvados.org/issues/8712?journal_id=373962016-04-05T16:35:06ZBrett Smithbrett.smith@curii.com
<ul><li><strong>Subject</strong> changed from <i>[FUSE?] Disappearing files in keep mount</i> to <i>[FUSE] Read-only collections appear empty after they are evicted from the cache</i></li></ul> Arvados - Bug #8712: [FUSE] Read-only collections appear empty after they are evicted from the cachehttps://dev.arvados.org/issues/8712?journal_id=374152016-04-05T17:09:14ZPeter Amstutzpeter.amstutz@curii.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>In Progress</i></li><li><strong>Story points</strong> set to <i>0.5</i></li></ul> Arvados - Bug #8712: [FUSE] Read-only collections appear empty after they are evicted from the cachehttps://dev.arvados.org/issues/8712?journal_id=374462016-04-05T18:20:10ZNico César
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Resolved</i></li><li><strong>% Done</strong> changed from <i>50</i> to <i>100</i></li></ul><p>Applied in changeset arvados|commit:b8ae9ce66c24055f3bf66b0956e15c44c9dd51f0.</p>