[merge] errors in deleting obsolete packs should not be fatal (was Re: Problems with NFS mounted filestore)

Martin Pool mbp at canonical.com
Tue May 27 01:16:46 BST 2008


On Tue, May 27, 2008 at 3:13 AM, Russel Winder
<russel.winder at concertant.com> wrote:
> On Mon, 2008-05-26 at 08:00 -0500, John Arbash Meinel wrote:

> OK that seems to indicate a second process rather than a branching
> internal thing.  As I was checking Martin's branch I checked what was
> around:

I had assumed it was a separate process or a leftover resource (which
can sometimes occur but probably wouldn't be verifiable.)

>
> |> ps ax | grep bzr
> 10367 ?        S      0:00 /usr/bin/python /usr/bin/bzr dbus-broadcast
> 18310 pts/15   S+     0:00 tail -f .bzr.log
> 18507 pts/16   S+     0:12
> python /home/users/russel/Repositories/Bazaar/Branches/Bzr/MartinsNFSPatch/bzr branch svn+ssh://www.concertant.com/home/subversion_repositories/ConcertantLLP
> 18547 pts/6    R+     0:00 grep bzr
>
> 10367 looks suspicious.  I killed it and tried again but no, the problem
> still happens:
>
> |> bzr branch svn
> +ssh://www.concertant.com/home/subversion_repositories/ConcertantLLP
> bzr: ERROR: Device or resource busy:
> "/home/users/russel/tmp/BazaarExpts/ConcertantLLP/.bzr/repository/obsolete_packs/.nfs0000000000c84276000000c1": [Errno 16] Device or resource busy: '/home/users/russel/tmp/BazaarExpts/ConcertantLLP/.bzr/repository/obsolete_packs/.nfs0000000000c84276000000c1'

If you wouldn't mind doing one more thing to help us get to the root
cause: go back to a version of bzr without my patch, and apply this
patch using

  patch -p0 < 20080527-repack-lsof.diff

This should tell us which files are open by bzr when it tries to
delete the obsolete packs.  I don't see any of them as still open but
maybe there is something different in your case or with bzr-svn.  You
will also need to 'apt-get install bzr'.

-- 
Martin <http://launchpad.net/~mbp/>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20080527-repack-lsof.diff
Type: text/x-diff
Size: 517 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080527/ca3b03c2/attachment.bin 


More information about the bazaar mailing list