Problem doing bzr missing on two projects fromt he same repository

Bug #256656 reported by Russel Winder
2
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
New
Undecided
Unassigned

Bug Description

The context is the Gant project. The Subversion repository at Codehaus is standard structure with trunk, branches and tags. I have a Bazaar branch of the trunk and a bazaar branch of the branches/1.4.x. If I run "bzr missing" on both of the branches at the same time then one of them fails. There isn't a problem with the branches and the repository it is simply a Bazaar execution issue. I think the real problem here is that the error message is not really appropriate to the problem. It would be better if there wasn't a problem but if access has to be serialized then something along those lines would be more appropriate.

So I started the check for the 1.4.x branch:

502 balin:~/Repositories/Bazaar/Subversion_Branches/Gant/1.4.x
|> bzr missing
Using last location: svn+https://svn.codehaus.org/gant/gant/branches/1.4.x
The svn+ syntax is deprecated, use https://svn.codehaus.org/gant/gant/branches/1.4.x instead.
Initialising Subversion metadata cache in /home/users/russel/.bazaar/svn-cache/d02f77da-47a5-474d-b610-f18e4bea325a
Branches are up to date.
503 balin:~/Repositories/Bazaar/Subversion_Branches/Gant/1.4.x
|>

then is a seperate terminal a few moments later:

 |> bzr missing
Using last location: svn+https://svn.codehaus.org/gant/gant/trunk
The svn+ syntax is deprecated, use https://svn.codehaus.org/gant/gant/trunk instead.
bzr: ERROR: sqlite3.OperationalError: database is locked

Traceback (most recent call last):
  File "/home/Checkouts/Bazaar/Bazaar_Mainline/bzrlib/commands.py", line 857, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/home/Checkouts/Bazaar/Bazaar_Mainline/bzrlib/commands.py", line 797, in run_bzr
    ret = run(*run_argv)
  File "/home/Checkouts/Bazaar/Bazaar_Mainline/bzrlib/commands.py", line 499, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/Checkouts/Bazaar/Bazaar_Mainline/bzrlib/commands.py", line 818, in ignore_pipe
    result = func(*args, **kwargs)
  File "/home/users/russel/.bazaar/plugins/xmloutput/__init__.py", line 154, in run
    builtins.cmd_missing.run(self, *args, **kwargs)
  File "/home/Checkouts/Bazaar/Bazaar_Mainline/bzrlib/commands.py", line 818, in ignore_pipe
    result = func(*args, **kwargs)
  File "/home/Checkouts/Bazaar/Bazaar_Mainline/bzrlib/builtins.py", line 3318, in run
    remote_branch = Branch.open(other_branch)
  File "/home/Checkouts/Bazaar/Bazaar_Mainline/bzrlib/branch.py", line 121, in open
    return control.open_branch(_unsupported)
  File "/home/users/russel/.bazaar/plugins/svn/remote.py", line 174, in open_branch
    branch = SvnBranch(repos, self.branch_path)
  File "/home/users/russel/.bazaar/plugins/svn/branch.py", line 166, in __init__
    revnum = self.get_revnum()
  File "/home/users/russel/.bazaar/plugins/svn/branch.py", line 227, in get_revnum
    self._cached_revnum = self.repository._log.find_latest_change(self.get_branch_path(), latest_revnum)
  File "/home/users/russel/.bazaar/plugins/svn/logwalker.py", line 274, in find_latest_change
    self.fetch_revisions(revnum)
  File "/home/users/russel/.bazaar/plugins/svn/logwalker.py", line 464, in fetch_revisions
    self.actual._transport.get_log(rcvr, [""], self.saved_revnum, to_revnum, 0, True, True, False, todo_revprops)
  File "/home/users/russel/.bazaar/plugins/svn/transport.py", line 336, in get_log
    revprops)
  File "/home/users/russel/.bazaar/plugins/svn/logwalker.py", line 449, in rcvr
    self.cache.insert_revprops(revision, revprops)
  File "/home/users/russel/.bazaar/plugins/svn/logwalker.py", line 230, in insert_revprops
    self.insert_revprop(revision, k, v)
  File "/home/users/russel/.bazaar/plugins/svn/logwalker.py", line 226, in insert_revprop
    self.cachedb.execute("replace into revprop (rev, name, value) values (?, ?, ?)", (rev, name.decode("utf-8"), value.decode("utf-8")))
OperationalError: database is locked

bzr 1.7dev on python 2.5.2 (linux2)
arguments: ['/home/users/russel/bin/bzr', 'missing']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_GB.UTF-8'
plugins:
  builddeb /usr/lib/python2.5/site-packages/bzrlib/plugins/builddeb [0.92.0dev0]
  bzrtools /home/users/russel/.bazaar/plugins/bzrtools [1.6.0]
  email /usr/lib/python2.5/site-packages/bzrlib/plugins/email [unknown]
  gtk /home/users/russel/.bazaar/plugins/gtk [0.96.0dev1]
  launchpad /home/Checkouts/Bazaar/Bazaar_Mainline/bzrlib/plugins/launchpad [unknown]
  pqm /usr/lib/python2.5/site-packages/bzrlib/plugins/pqm [1.0.0dev0]
  rebase /home/users/russel/.bazaar/plugins/rebase [0.4.0dev0]
  svn /home/users/russel/.bazaar/plugins/svn [0.4.11rc1]
  xmloutput /home/users/russel/.bazaar/plugins/xmloutput [0.4.5]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.
504 balin:~/Repositories/Bazaar/Subversion_Branches/Gant/Trunk
|> bzr missing
Using last location: svn+https://svn.codehaus.org/gant/gant/trunk
The svn+ syntax is deprecated, use https://svn.codehaus.org/gant/gant/trunk instead.
Branches are up to date.
504 balin:~/Repositories/Bazaar/Subversion_Branches/Gant/Trunk
|>

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.