subversion-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Douglas Robinson (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SVN-4674) remove-zombie-locks.py is broken on SVN 1.9.5
Date Mon, 06 Mar 2017 18:43:33 GMT
Douglas Robinson created SVN-4674:
-------------------------------------

             Summary: 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)

Mime
View raw message