[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Suspected issue with "remove-zombie-locks.py"?

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Mon, 6 Mar 2017 16:06:44 +0000

Doug Robinson wrote on Mon, Mar 06, 2017 at 10:15:04 -0500:
>
> Doug Robinson <doug.robinson_at_wandisco.com> wrote:
> > Traceback (most recent call last):
> >
> > File "hook-scripts/remove-zombie-locks.py", line 214, in <module>
> >
> > main()
> >
> > File "hook-scripts/remove-zombie-locks.py", line 208, in main
> >
> > remover.run()
> >
> > File "hook-scripts/remove-zombie-locks.py", line 138, in run
> >
> > self.unlock_nonexistent_files, self.pool)
> >
> > File "/opt/rh/python27/root/usr/lib64/python2.7/site-packages/libsvn/fs.py",
> > line 860, in svn_fs_get_locks2
> >
> > return _fs.svn_fs_get_locks2(*args)
> >
> > svn.core.SubversionException: 160034 - No username is currently associated
> > with filesystem 'd52a5571-d2a3-4db8-a9e5-a081d6b4b455'

I can reproduce this using the FS API only (without the contrib/ script):

% python2
>>> from svn.core import *
>>> from svn.fs import *
>>> from __future__ import print_function
>>> fs = svn_fs_open("r/db", None)
>>> svn_fs_get_locks2(fs, "", svn_depth_infinity, print)
<libsvn.core.svn_lock_t; proxy of <Swig Object of type 'svn_lock_t *' at 0x7f4d83bb9660> > <libsvn.core.apr_pool_t; proxy of <Swig Object of type 'apr_pool_t *' at 0x7f4d83bb96c0> >
>>> svn_fs_get_locks2(fs, "", svn_depth_infinity, (lambda lock, pool: svn_fs_unlock(fs, lock.path, lock.token, True, pool)))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/libsvn/fs.py", line 876, in svn_fs_get_locks2
    return _fs.svn_fs_get_locks2(*args)
svn.core.SubversionException: 160034 - No username is currently associated with filesystem 'a1257b00-ab15-4056-8430-3a7080d0ccfe'

> I realize that the SHA1-collision issues are consuming most of the duty
> cycles at this point. Before I forget about this one - should I file a bug?

Yes, please.

Thanks,

Daniel
Received on 2017-03-06 17:11:34 CET

This is an archived mail posted to the Subversion Dev mailing list.