You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@subversion.apache.org by "Daniel Shahaf (JIRA)" <ji...@apache.org> on 2017/03/06 20:43:33 UTC

[jira] [Updated] (SVN-4674) remove-zombie-locks.py is broken on SVN 1.9.5

     [ https://issues.apache.org/jira/browse/SVN-4674?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Shahaf updated SVN-4674:
-------------------------------

List discussion:

    https://svn.haxx.se/dev/archive-2017-03/0008.shtml
    Date: Thu, 2 Mar 2017 08:19:04 -0500
    From: Doug Robinson <do...@wandisco.com>
    To: "dev@subversion.apache.org" <de...@subversion.apache.org>
    Subject: Suspected issue with "remove-zombie-locks.py"?
    Message-ID: <CA...@mail.gmail.com>



> remove-zombie-locks.py is broken on SVN 1.9.5
> ---------------------------------------------
>
>                 Key: SVN-4674
>                 URL: https://issues.apache.org/jira/browse/SVN-4674
>             Project: Subversion
>          Issue Type: Bug
>          Components: libsvn_fs
>    Affects Versions: 1.9.5
>         Environment: CentOS 6.x, WANdisco SVN 1.9.5
>            Reporter: Douglas Robinson
>
> The following commands were run on a CentOS 6.x, WANdisco Subversion 1.9.5, Python 2.7:
> {noformat}
> # svn export https://svn.apache.org/repos/asf/subversion/trunk/contrib/hook-scripts
> # svnadmin create repo
> # svn co file:///path/to/repo wc
> # cd wc
> # touch wc/a; svn add wc/a; svn ci -mm wc
> # svn lock wc/a; svn rm wc/a; svn ci -mm --no-unlock wc
> # hook-scripts/remove-zombie-locks.py repo1 all
> Removing all zombie locks from repository at /root/repo
> This may take several minutes...
> /a
> 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'
> {noformat}
> +Per Daniel Shahaf+:
> I can reproduce this using the FS API only (without the contrib/ script):
> {noformat}
> % 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'
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)