Steps to reproduce together with full stack trace from current bzr.dev. I guess this might be mainly useful as a unit test case. Notice that thet error will leave a stale lock in place, which I'd consider another error. Imho all locks should be released using suitable 'finally' clauses. Or is the connection unusable after this error occurred?
$ bzr init -q trunk
$ echo one > trunk/foo
$ bzr add -q trunk/foo
$ bzr commit -q -m one trunk
$ bzr branch -q trunk branch
$ echo two > branch/foo
$ bzr commit -q -m two branch
$ bzr checkout bzr+ssh://localhost/${PWD}/trunk checkout
$ bzr pull -d checkout bzr+ssh://localhost/${PWD}/branch
bzr: ERROR: bzrlib.errors.TooManyConcurrentRequests: The medium 'SmartSSHClientMedium(bzr+ssh://None@localhost/)' has reached its concurrent request limit. Be sure to finish_writing and finish_reading on the currently open request.
Traceback (most recent call last):
File "bzrlib/commands.py", line 918, in exception_to_return_code
return the_callable(*args, **kwargs)
File "bzrlib/commands.py", line 1118, in run_bzr
ret = run(*run_argv)
File "bzrlib/commands.py", line 676, in run_argv_aliases
return self.run(**all_cmd_args)
File "bzrlib/commands.py", line 698, in run
return self._operation.run_simple(*args, **kwargs)
File "bzrlib/cleanup.py", line 135, in run_simple
self.cleanups, self.func, *args, **kwargs)
File "bzrlib/cleanup.py", line 165, in _do_with_cleanups
result = func(*args, **kwargs)
File "bzrlib/builtins.py", line 1080, in run
show_base=show_base)
File "bzrlib/decorators.py", line 217, in write_locked
result = unbound(self, *args, **kwargs)
File "bzrlib/workingtree.py", line 1013, in pull
local=local)
File "bzrlib/branch.py", line 1103, in pull
possible_transports=possible_transports, *args, **kwargs)
File "bzrlib/decorators.py", line 217, in write_locked
result = unbound(self, *args, **kwargs)
File "bzrlib/branch.py", line 3367, in pull
run_hooks=False)
File "bzrlib/decorators.py", line 217, in write_locked
result = unbound(self, *args, **kwargs)
File "bzrlib/remote.py", line 2992, in pull
_override_hook_target=self, **kwargs)
File "bzrlib/branch.py", line 1103, in pull
possible_transports=possible_transports, *args, **kwargs)
File "bzrlib/decorators.py", line 217, in write_locked
result = unbound(self, *args, **kwargs)
File "bzrlib/branch.py", line 3372, in pull
merge_tags_to_master=not source_is_master)
File "bzrlib/branch.py", line 3502, in _pull
graph=graph)
File "bzrlib/decorators.py", line 217, in write_locked
result = unbound(self, *args, **kwargs)
File "bzrlib/branch.py", line 3315, in _update_revisions
self.fetch(stop_revision=stop_revision)
File "bzrlib/decorators.py", line 217, in write_locked
result = unbound(self, *args, **kwargs)
File "bzrlib/branch.py", line 3292, in fetch
fetch_spec=fetch_spec)
File "bzrlib/remote.py", line 1660, in fetch
find_ghosts=find_ghosts, fetch_spec=fetch_spec)
File "bzrlib/decorators.py", line 217, in write_locked
result = unbound(self, *args, **kwargs)
File "bzrlib/vf_repository.py", line 2512, in fetch
find_ghosts=find_ghosts)
File "bzrlib/fetch.py", line 75, in __init__
self.__fetch()
File "bzrlib/fetch.py", line 102, in __fetch
self._fetch_everything_for_search(search_result)
File "bzrlib/fetch.py", line 130, in _fetch_everything_for_search
stream, from_format, [])
File "bzrlib/remote.py", line 2106, in insert_stream
(verb, path, resume_tokens) + lock_args, byte_stream)
File "bzrlib/smart/client.py", line 181, in call_with_body_stream
expect_response_body=False)
File "bzrlib/smart/client.py", line 79, in _call_and_read_response
readv_body=readv_body, body_stream=body_stream)
File "bzrlib/smart/client.py", line 61, in _send_request
encoder.call_with_body_stream((method, ) + args, body_stream)
File "bzrlib/smart/protocol.py", line 1277, in _iter_with_errors
yield None, iterator.next()
File "bzrlib/smart/repository.py", line 519, in _stream_to_byte_stream
for substream_type, substream in stream:
File "bzrlib/remote.py", line 2291, in missing_parents_chain
for kind, stream in self._get_stream(sources[0], search):
File "bzrlib/remote.py", line 2237, in _get_stream
verb, args, search_bytes)
File "bzrlib/remote.py", line 79, in _call_with_body_bytes_expecting_body
method, args, body_bytes)
File "bzrlib/smart/client.py", line 170, in call_with_body_bytes_expecting_body
method, args, body=body, expect_response_body=True)
File "bzrlib/smart/client.py", line 79, in _call_and_read_response
readv_body=readv_body, body_stream=body_stream)
File "bzrlib/smart/client.py", line 45, in _send_request
protocol_version)
File "bzrlib/smart/client.py", line 115, in _construct_protocol
request = self._medium.get_request()
File "bzrlib/smart/medium.py", line 734, in get_request
return SmartClientStreamMediumRequest(self)
File "bzrlib/smart/medium.py", line 992, in __init__
raise errors.TooManyConcurrentRequests(self._medium)
TooManyConcurrentRequests: The medium 'SmartSSHClientMedium(bzr+ssh://None@localhost/)' has reached its concurrent request limit. Be sure to finish_writing and finish_reading on the currently open request.
*** Bazaar has encountered an internal error. This probably indicates a
bug in Bazaar. You can help us fix it by filing a bug report at https://bugs.launchpad.net/bzr/+filebug
including this traceback and a description of the problem.
$ cat trunk/foo
one
$ echo three > trunk/foo
$ bzr commit -m three trunk
Unable to obtain lock file:///.../trunk/ held by ... on ... (process #...), acquired 0 seconds ago.
Will continue to try until ..., unless you press Ctrl-C.
See "bzr help break-lock" for more.
^C
Steps to reproduce together with full stack trace from current bzr.dev. I guess this might be mainly useful as a unit test case. Notice that thet error will leave a stale lock in place, which I'd consider another error. Imho all locks should be released using suitable 'finally' clauses. Or is the connection unusable after this error occurred?
$ bzr init -q trunk //localhost/ ${PWD}/ trunk checkout //localhost/ ${PWD}/ branch errors. TooManyConcurre ntRequests: The medium 'SmartSSHClient Medium( bzr+ssh: //None@ localhost/ )' has reached its concurrent request limit. Be sure to finish_writing and finish_reading on the currently open request.
$ echo one > trunk/foo
$ bzr add -q trunk/foo
$ bzr commit -q -m one trunk
$ bzr branch -q trunk branch
$ echo two > branch/foo
$ bzr commit -q -m two branch
$ bzr checkout bzr+ssh:
$ bzr pull -d checkout bzr+ssh:
bzr: ERROR: bzrlib.
Traceback (most recent call last): commands. py", line 918, in exception_ to_return_ code commands. py", line 1118, in run_bzr commands. py", line 676, in run_argv_aliases **all_cmd_ args) commands. py", line 698, in run .run_simple( *args, **kwargs) cleanup. py", line 135, in run_simple cleanup. py", line 165, in _do_with_cleanups builtins. py", line 1080, in run base=show_ base) decorators. py", line 217, in write_locked workingtree. py", line 1013, in pull transports= possible_ transports, *args, **kwargs) decorators. py", line 217, in write_locked hooks=False) decorators. py", line 217, in write_locked hook_target= self, **kwargs) transports= possible_ transports, *args, **kwargs) decorators. py", line 217, in write_locked tags_to_ master= not source_is_master) decorators. py", line 217, in write_locked fetch(stop_ revision= stop_revision) decorators. py", line 217, in write_locked spec=fetch_ spec) ghosts= find_ghosts, fetch_spec= fetch_spec) decorators. py", line 217, in write_locked vf_repository. py", line 2512, in fetch ghosts= find_ghosts) _fetch_ everything_ for_search( search_ result) everything_ for_search smart/client. py", line 181, in call_with_ body_stream response_ body=False) smart/client. py", line 79, in _call_and_ read_response body=readv_ body, body_stream= body_stream) smart/client. py", line 61, in _send_request call_with_ body_stream( (method, ) + args, body_stream) smart/protocol. py", line 1277, in _iter_with_errors smart/repositor y.py", line 519, in _stream_ to_byte_ stream parents_ chain stream( sources[ 0], search): body_bytes_ expecting_ body smart/client. py", line 170, in call_with_ body_bytes_ expecting_ body response_ body=True) smart/client. py", line 79, in _call_and_ read_response body=readv_ body, body_stream= body_stream) smart/client. py", line 45, in _send_request version) smart/client. py", line 115, in _construct_protocol get_request( ) smart/medium. py", line 734, in get_request amMediumRequest (self) smart/medium. py", line 992, in __init__ TooManyConcurre ntRequests( self._medium) ntRequests: The medium 'SmartSSHClient Medium( bzr+ssh: //None@ localhost/ )' has reached its concurrent request limit. Be sure to finish_writing and finish_reading on the currently open request.
File "bzrlib/
return the_callable(*args, **kwargs)
File "bzrlib/
ret = run(*run_argv)
File "bzrlib/
return self.run(
File "bzrlib/
return self._operation
File "bzrlib/
self.cleanups, self.func, *args, **kwargs)
File "bzrlib/
result = func(*args, **kwargs)
File "bzrlib/
show_
File "bzrlib/
result = unbound(self, *args, **kwargs)
File "bzrlib/
local=local)
File "bzrlib/branch.py", line 1103, in pull
possible_
File "bzrlib/
result = unbound(self, *args, **kwargs)
File "bzrlib/branch.py", line 3367, in pull
run_
File "bzrlib/
result = unbound(self, *args, **kwargs)
File "bzrlib/remote.py", line 2992, in pull
_override_
File "bzrlib/branch.py", line 1103, in pull
possible_
File "bzrlib/
result = unbound(self, *args, **kwargs)
File "bzrlib/branch.py", line 3372, in pull
merge_
File "bzrlib/branch.py", line 3502, in _pull
graph=graph)
File "bzrlib/
result = unbound(self, *args, **kwargs)
File "bzrlib/branch.py", line 3315, in _update_revisions
self.
File "bzrlib/
result = unbound(self, *args, **kwargs)
File "bzrlib/branch.py", line 3292, in fetch
fetch_
File "bzrlib/remote.py", line 1660, in fetch
find_
File "bzrlib/
result = unbound(self, *args, **kwargs)
File "bzrlib/
find_
File "bzrlib/fetch.py", line 75, in __init__
self.__fetch()
File "bzrlib/fetch.py", line 102, in __fetch
self.
File "bzrlib/fetch.py", line 130, in _fetch_
stream, from_format, [])
File "bzrlib/remote.py", line 2106, in insert_stream
(verb, path, resume_tokens) + lock_args, byte_stream)
File "bzrlib/
expect_
File "bzrlib/
readv_
File "bzrlib/
encoder.
File "bzrlib/
yield None, iterator.next()
File "bzrlib/
for substream_type, substream in stream:
File "bzrlib/remote.py", line 2291, in missing_
for kind, stream in self._get_
File "bzrlib/remote.py", line 2237, in _get_stream
verb, args, search_bytes)
File "bzrlib/remote.py", line 79, in _call_with_
method, args, body_bytes)
File "bzrlib/
method, args, body=body, expect_
File "bzrlib/
readv_
File "bzrlib/
protocol_
File "bzrlib/
request = self._medium.
File "bzrlib/
return SmartClientStre
File "bzrlib/
raise errors.
TooManyConcurre
bzr 2.5.0dev1 on python 2.7.2 (Linux- 3.0.3-gentoo- x86_64- AMD_Phenom- tm-_II_ X4_945_ Processor- with-gentoo- 2.0.3) //localhost/ /.../branch' ]
arguments: ['bzr', '--no-plugins', 'pull', '-d', 'checkout', 'bzr+ssh:
plugins:
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'de_DE.utf8'
*** Bazaar has encountered an internal error. This probably indicates a /bugs.launchpad .net/bzr/ +filebug
bug in Bazaar. You can help us fix it by filing a bug report at
https:/
including this traceback and a description of the problem.
$ cat trunk/foo
one
$ echo three > trunk/foo
$ bzr commit -m three trunk
Unable to obtain lock file:///.../trunk/ held by ... on ... (process #...), acquired 0 seconds ago.
Will continue to try until ..., unless you press Ctrl-C.
See "bzr help break-lock" for more.
^C