Comment 11 for bug 495000

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 495000] Re: Autopack fails with NoSuchFile error when committing concurrently

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

Martin Pool wrote:
> 2009/12/16 John A Meinel <email address hidden>:
>> b) Try a short sleep and try-again. This won't fix all cases, and
>> eventually we should time out and stop trying. Actually, we probably
>> want to move on to renaming all the other files we can, and then come
>> back to trying to rename this one. That way the other process doesn't
>> hold open another pack file, and in fact, will probably trigger it to
>> stop what it is doing completely, freeing up this one.
>>
>> We could do one loop, or 2, or 5, or X and then stop. I don't think we
>> want to try indefinitely.
>>
>> It certainly can be identified after the fact that this is an
>> unreferenced file, though currently we don't have that action
>> specifically exposed.
>
> I'd probably try that first, and also make it give a warning that it's
> doing so, so that
>
> 1- people know why it's slowed down
> 2- it will come up in later bug reports, if there are any
>

Yeah, I think that is a reasonable way to go.

I also wonder, though. I'm guessing we are getting "NoSuchFile" because
we are failing to properly translate an existing error to
PermissionDenied. But I'd have to dig further to confirm or deny that.

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

iEYEARECAAYFAkso/KoACgkQJdeBCYSNAAN91QCg0X0ZR/b5LxvLA1hjJ43BjI0L
5sAAniVpHbfVR9QTvMAp5jREiafQ0oZu
=y742
-----END PGP SIGNATURE-----