Startup delay in commands using bzr smart server when bzr-svn plugin installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar Subversion Plugin |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I've recently been playing around with the Bazaar smart server and I've noticed a considerable delay in any "bzr" commands when compared to using the filesystem directly. After looking at the logs I noticed that it was pausing right after a message about bzr-svn, and the server log had several Subversion-related errors. Removing the plugin made this delay go away.
Since I don't currently need to use bzr-svn this is an easy workaround. However, this plugin is installed as part of the standard Bazaar package for Windows so unless it's an issue unique to my machine then everyone's going to be experiencing slow smart server performance.
To reproduce:
Download and install http://
Run the following commands:
bzr init bzrtest
start bzr serve
bzr info bzrtest
bzr info bzr://localhost
The first "bzr info" is almost instantaneous while the second takes approx. 2 seconds (other commands have the same issue).
Remove the "svn" plugin from "C:\Program Files\Bazaar\
The server log has the following messages:
5.624 bzr-svn: using Subversion 1.5.6 ()
7.218 Unable to open <bzrlib.
7.249 Unable to open <bzrlib.
7.249 Unable to open <bzrlib.
7.249 Unable to open <bzrlib.
7.264 Unable to open <bzrlib.
7.280 Unable to open <bzrlib.
7.280 Unable to open <bzrlib.
7.280 Unable to open <bzrlib.
7.296 Unable to open <bzrlib.
7.296 Unable to open <bzrlib.
My machine is running Windows XP SP3 with Bazaar 2.0.1. I also have Subversion 1.6.5 installed but AFAIK I'm not using it.
status incomplete
I can't reproduce this problem, at least not on Linux. There is some
overhead in loading bzr-svn, but it shouldn't be 2 seconds (it's 100ms
here). I have no idea why bzr is probing that URL with bzr-svn anyway,
as it should be able to open it using a native bzr format.
Do you get any messages about bzr-svn being loaded when you run "bzr
info bzrtest" ?