bzr: ERROR: No such file: .../.bzr/repository/indices/...rix

Bug #819964 reported by Jean-Paul Calderone
40
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
High
Unassigned

Bug Description

The "bzr pull" processes launched by this script:

    mkdir hosta
    mkdir hostb
    cd hosta/
    mkdir project
    bzr init project
    cd project
    touch content
    bzr add content
    bzr commit -m 'initial setup'
    cd ../../hostb/
    bzr init-repo .
    bzr branch ../hosta/project/ one
    bzr branch ../hosta/project/ two
    for i in `seq 1000`; do
      pushd ../hosta/project;
      echo $i > content;
      bzr commit content -m 'update';
      popd;
      (cd one; bzr pull) & (cd two; bzr pull) & wait;
    done

will eventually begin to fail with messages like:

bzr: ERROR: No such file: u'/tmp/bzrbug/hostb/.bzr/repository/indices/17cc87340f0e835ce4ce99f32292482b.rix': [Errno 2] No such file or directory: u'/tmp/bzrbug/hostb/.bzr/repository/indices/17cc87340f0e835ce4ce99f32292482b.rix'

Once the error occurs, it appears to be a permanent problem with the repository.

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

Thanks very much for the clear reproduction recipe.

Just to help dedupe this, do you have a traceback from .bzr.log when this happens?

Changed in bzr:
importance: Undecided → High
status: New → Confirmed
Martin Pool (mbp)
tags: added: affects-twisted crash repository
Revision history for this message
Jean-Paul Calderone (exarkun) wrote :
Revision history for this message
Jean-Paul Calderone (exarkun) wrote :
Revision history for this message
Jean-Paul Calderone (exarkun) wrote :

If I replace the lines:

    bzr branch ../hosta/project/ one
    bzr branch ../hosta/project/ two

with something that uses the bzr+ssh transport instead, such as:

    bzr branch bzr+ssh://localhost/~/bzrtest/hosta/project/ one
    bzr branch bzr+ssh://localhost/~/bzrtest/hosta/project/ two

Then the error changes to:

bzr: ERROR: No such file: u'/home/exarkun/bzrtest/hostb/.bzr/repository/indices/a2c8bdbf13d1c0d81330863f2d3d2657.six': [Errno 2] No such file or directory: u'/home/exarkun/bzrtest/hostb/.bzr/repository/indices/a2c8bdbf13d1c0d81330863f2d3d2657.six'

Associated .bzr.log portion attached.

Revision history for this message
Jean-Paul Calderone (exarkun) wrote :
Revision history for this message
Jean-Paul Calderone (exarkun) wrote :

The problem with the bzr+ssh usage is reproducable on 2.4b5 as well, log attached.

Revision history for this message
Jean-Paul Calderone (exarkun) wrote :
Revision history for this message
Ramesh Maddali (ramesh-maddali) wrote :

Hi,

When can we expect a solution for this issue, as its hitting us quite consistently.

thanks,
ramesh

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 819964] Re: bzr: ERROR: No such file: .../.bzr/repository/indices/...rix

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 6/4/2012 8:27 AM, Ramesh Maddali wrote:
> Hi,
>
> When can we expect a solution for this issue, as its hitting us
> quite consistently.
>
> thanks, ramesh
>

I wasn't actually able to reproduce this. Though I'm running on
Windows, and filesystem concurrency works differently there. I tried
in a VM, but that only has a single CPU, so there isn't as much
concurrency.

Martin, you posted on this earlier, are you able to reproduce a .rix
failure with newer versions of bzr?

Offhand this looks like a "2 independent bzr processes introduce the
same data into the repository while an autopack triggers".

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/OE+IACgkQJdeBCYSNAANnFACfbUJ0xdHOJMVdBf82VoQb2Dan
9c8AoMS3Bx/kOSYLvvWwnkt0fwFMo1lS
=rHsw
-----END PGP SIGNATURE-----

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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