lock not held doing info on lp:

Bug #523557 reported by Robert Collins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
High
Unassigned

Bug Description

 affects bzr
 tag easy
 status confirmed
 importance high
 done

I'm not sure if this was fixed recently or not; seems easy and
reasonably important to me

$ bzr info -v lp:loggerhead/1.17
Repository branch (format:
unnamed)
Location:
  shared repository: bzr
+ssh://bazaar.launchpad.net/~loggerhead-team/loggerhead/1.17/
  repository branch: bzr
+ssh://bazaar.launchpad.net/~loggerhead-team/loggerhead/1.17/

Related branches:
  stacked on: /~loggerhead-team/loggerhead/trunk-rich

Format:
       control: bzr remote bzrdir
        branch: Remote: Branch format 7
    repository: Remote: Packs 6 rich-root (uses btree indexes, requires
bzr 1.9)
bzr: ERROR: Lock not held: LockableFiles(lock, bzr
+ssh://bazaar.launchpad.net/~loggerhead-team/loggerhead/1.17/.bzr/repository/)

Tags: easy
Revision history for this message
Jonathan Lange (jml) wrote :

Is the "lp:" in the subject significant?

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 523557] Re: lock not held doing info on lp:

Probably not. It might be Launchpad specific. It's probably already fixed.
- Martin

On 04/03/2010 12:05 AM, "Jonathan Lange" <email address hidden> wrote:

Is the "lp:" in the subject significant?

--
lock not held doing info on lp:
https://bugs.launchpad.net/bugs/523557
You received this bug no...

Revision history for this message
Parth Malwankar (parthm) wrote :
Download full text (3.6 KiB)

This is still happening with bzr 2.1. Interestingly it happens only with 'bzr info -v lp:loggerhead/1.17'. Without the -v and on a few other repos (I tried bzr/2.0, bzr-grep) it doesn't happen.

The LockNotHeld exception is caused during the unlock which is odd since the lock is actually held show_bzrdir_info

Source: bzrlib.info.show_bzrdir_info:
=============================
    .....
    lockable.lock_read()
    try:
        show_component_info(a_bzrdir, repository, branch, tree, verbose,
                            outfile)
    finally:
        lockable.unlock()

Log
===
[~]% bzr info -v lp:loggerhead/1.17
Repository branch (format: unnamed)
Location:
  shared repository: bzr+ssh://bazaar.launchpad.net/~loggerhead-team/loggerhead/1.17/
  repository branch: bzr+ssh://bazaar.launchpad.net/~loggerhead-team/loggerhead/1.17/

Related branches:
  stacked on: /~loggerhead-team/loggerhead/trunk-rich

Format:
       control: bzr remote bzrdir
        branch: Remote: Branch format 7
    repository: Remote: Packs 6 rich-root (uses btree indexes, requires bzr 1.9)
bzr: ERROR: Lock not held: LockableFiles(lock, bzr+ssh://bazaar.launchpad.net/~loggerhead-team/loggerhead/1.17/.bzr/repository/)
[~]% bzr info lp:loggerhead/1.17
Repository branch (format: unnamed)
Location:
  shared repository: bzr+ssh://bazaar.launchpad.net/~loggerhead-team/loggerhead/1.17/
  repository branch: bzr+ssh://bazaar.launchpad.net/~loggerhead-team/loggerhead/1.17/

Related branches:
  stacked on: /~loggerhead-team/loggerhead/trunk-rich
[~]%

Stack Trace
==========
  File "/usr/lib/python2.6/dist-packages/bzrlib/info.py", line 354, in show_bzrdir_info
    lockable.unlock()
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 222, in wrapped
    return unbound(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 2446, in unlock
    self.repository.unlock()
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 222, in wrapped
    return unbound(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 1128, in unlock
    self._real_repository.unlock()
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 222, in wrapped
    return unbound(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repofmt/pack_repo.py", line 2422, in unlock
    self.control_...

Read more...

Revision history for this message
Martin Pool (mbp) wrote :

Getting LockNotHeld while unlocking suggests that either

1- we have a bug in this one process, perhaps where it's got two
objects representing the same lock
2- a miscoordination between the cilent and serve
3- someone stole the lock (broke and then acquired it)

--
Martin <http://launchpad.net/~mbp/>

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: removed: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.