Sometimes "bzr version-info" doesn't complete

Bug #587692 reported by Jean-Paul Calderone
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subversion
New
Undecided
Unassigned

Bug Description

The "bzr version-info", when run against a checkout of an svn:// url sometimes takes an unreasonable amount of time (on the order of hours) before I get bored and kill it (or, colloquially, "never completes"). strace reveals that the process is doing a read on fd 4. netstat and /proc together tell me that fd 4 is a TCP connection to the svn server for the svn:// url (serverip:3690). On the server, netstat doesn't show the TCP connection.

Martin Pool (mbp)
affects: bzr → bzr-svn
Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 587692] Re: Sometimes "bzr version-info" doesn't complete

What sort of checkout -
svn co svn://FOO
bzr co svn://FOO
bzr co --lightweight svn://FOO
?

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

bzr co svn://FOO

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

On Mon, 2010-05-31 at 13:16 +0000, Jean-Paul Calderone wrote:
> bzr co svn://FOO
Does it work in a standalone branch ("bzr branch svn://FOO" ?)

Cheers,

Jelmer

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

> Does it work in a standalone branch ("bzr branch svn://FOO" ?)

I'm not sure what you mean. Possibly my bug description was insufficiently clear about the problem.

For a *particular* checkout, 'bzr version-info' sometimes completes and sometimes does not complete. I would not be surprised at all if, in the cases where it does not complete, the cause is that the network has dropped some packets and the TCP connection has silently disappeared. I wouldn't expect 'bzr version-info' to complete successfully in such a case (although if it can, that would be pretty awesome!). However, I would at least like it to finish with an error eventually.

If that was all obvious already and you're still interested in a comparison against the behavior with "bzr branch svn://FOO", I *might* be able to investigate that. But this is all happening as part of an automated build system, and switch the system to use "bzr branch" instead of "bzr checkout" is probably a major undertaking, so I'm not positive I'll be able to.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

when this happens, can you check where bzr is hanging exactly? (Ctrl+\ should land you in a pdb shell, I assume you know how to use one of those :-))

Changed in bzr-svn:
status: New → Incomplete
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This is almost certainly an issue in the Subversion client libraries, but perhaps we can work around it in bzr-svn.

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

> when this happens, can you check where bzr is hanging exactly? (Ctrl+\ should land you in a pdb shell, I assume you know how to use one of those :-))

Hm. I don't know. This all happens as part of an automated build system, so I can't just go in and hit C-\. Plus, apparently by the nature of the failure, this will only happen when there is a network problem, which would prevent me from replicating it on any of the remote hosts I've seen it occur on so far.

It's possible I can reproduce a similar symptom elsewhere under different circumstances, but who knows if that will be a faithful reproduction of the original problem.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

I'm pretty sure this is a bug in the underlying libs

affects: bzr-svn → subversion
Changed in subversion:
status: Incomplete → New
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.