wish format conversion was done separately, after fetching
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
The problem arises if I try to checkout a branch from remote source forge repository.
The branch currently has about 820 revisions, about 100 MB is transferred.
The remote repository has format rich-root-pack, the local repository has format 2a.
Version of my bzr client:
Bazaar (bzr) 2.0.1
Python interpreter: /usr/bin/python 2.6.2
Python standard library: /usr/lib/python2.6
Platform: Linux-2.
bzrlib: /usr/lib/
Bazaar configuration: /home/dimitry/
Bazaar log file: /home/dimitry/
I perform the following actions:
dimitry@
dimitry@
dimitry@
Shared repository with trees (format: 2a)
Location:
shared repository: .
dimitry@
<email address hidden>'s password:
[#########/ ] 114914KB 322KB/s | Fetching revisions:Inserting stream
After 114914KB is read (it is almost the whole content to be transferred),
CPU load becomes high. After waiting a few minutes I get a message
Read from remote host freeplane.
and later
bzr: ERROR: Connection closed: Unexpected end of message. Please check connectivity and permissions, and report a bug if problems persist.
The following messages are added to the .bzr.log file:
============== log fragment begin ===========
Tue 2009-10-20 19:17:46 +0200
0.078 bzr arguments: [u'init-repo', u'--default-
0.085 looking for plugins in /home/dimitry/
0.085 looking for plugins in /usr/lib/
0.230 encoding stdout as sys.stdout encoding 'UTF-8'
0.237 creating repository in file://
0.253 return code 0
Tue 2009-10-20 19:18:02 +0200
0.057 bzr arguments: [u'checkout', u'bzr+ssh://<email address hidden>
0.064 looking for plugins in /home/dimitry/
0.064 looking for plugins in /usr/lib/
0.175 encoding stdout as sys.stdout encoding 'UTF-8'
0.230 ssh implementation is OpenSSH
11.123 creating branch <bzrlib.
11.435 Using fetch logic to copy between RemoteRepositor
11.435 fetch up to rev {dimitry@
485.064 Traceback (most recent call last):
File "/usr/lib/
return the_callable(*args, **kwargs)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
accelerator
File "/usr/lib/
checkout_
File "/usr/lib/
result = unbound(self, *args, **kwargs)
File "/usr/lib/
possible_
File "/usr/lib/
_override_
File "/usr/lib/
overwrite=
File "/usr/lib/
result = unbound(self, *args, **kwargs)
File "/usr/lib/
overwrite, graph)
File "/usr/lib/
self.
File "/usr/lib/
result = unbound(self, *args, **kwargs)
File "/usr/lib/
pb=pb)
File "/usr/lib/
find_
File "/usr/lib/
result = unbound(self, *args, **kwargs)
File "/usr/lib/
pb=pb, find_ghosts=
File "/usr/lib/
self.__fetch()
File "/usr/lib/
self.
File "/usr/lib/
stream, from_format, [])
File "/usr/lib/
return self._locked_
File "/usr/lib/
substream, src_serializer)
File "/usr/lib/
for record in substream:
File "/usr/lib/
for bytes in self._bytes_
File "/usr/lib/
for record in self.iter_
File "/usr/lib/
for bytes in self.byte_stream:
File "/usr/lib/
self.
File "/usr/lib/
"Unexpected end of message. "
ConnectionReset: Connection closed: Unexpected end of message. Please check connectivity and permissions, and report a bug if problems persist.
485.065 return code 3
============== log fragment end ===========
There is a workaround:
if I use the same repository format as on the source repository
bzr init-repo --rich-root-pack .
there is no time the CPU load is high and the same checkout works fine
============== log fragment begin ===========
Tue 2009-10-20 19:52:55 +0200
0.087 bzr arguments: [u'init-repo', u'--rich-
0.103 looking for plugins in /home/dimitry/
0.103 looking for plugins in /usr/lib/
0.242 encoding stdout as sys.stdout encoding 'UTF-8'
0.249 creating repository in file://
0.285 return code 0
Tue 2009-10-20 19:53:11 +0200
0.041 bzr arguments: [u'checkout', u'bzr+ssh://<email address hidden>
0.048 looking for plugins in /home/dimitry/
0.048 looking for plugins in /usr/lib/
0.159 encoding stdout as sys.stdout encoding 'UTF-8'
0.217 ssh implementation is OpenSSH
10.313 creating branch <bzrlib.
10.618 Using fetch logic to copy between RemoteRepositor
10.619 fetch up to rev {dimitry@
277.519 trying to create missing lock '/home/
277.519 opening working tree '/home/
280.244 return code 0
============== log fragment end ===========
tags: | added: check-for-breezy |
Converting from rich-root-pack to 2a on the fly takes some effort. If
SourceForge's bzr server is anything like their svn server, it's
probably just taking up enough time or resources that SourceForge kills
the process or times out or something.
Of course, it's possible bzr is doing something dumb that exacerbates
this... Maybe someone more knowledgeable than me should weigh in.