NoSuchRevision when pushing to RemoteBranch

Bug #332314 reported by Andrew Bennetts
2
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Critical
Robert Collins

Bug Description

I just got this:

Traceback (most recent call last):
  File "/home/andrew/code/bzr/bzrlib/commands.py", line 921, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/home/andrew/code/bzr/bzrlib/commands.py", line 866, in run_bzr
    ret = run(*run_argv)
  File "/home/andrew/code/bzr/bzrlib/commands.py", line 547, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/andrew/code/bzr/bzrlib/builtins.py", line 981, in run
    use_existing_dir=use_existing_dir)
  File "/home/andrew/code/bzr/bzrlib/push.py", line 160, in _show_push_branch
    stop_revision=revision_id)
  File "/home/andrew/code/bzr/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/home/andrew/code/bzr/bzrlib/branch.py", line 1970, in push
    _override_hook_source_branch=_override_hook_source_branch)
  File "/home/andrew/code/bzr/bzrlib/branch.py", line 2681, in _run_with_write_locked_target
    result = callable(*args, **kwargs)
  File "/home/andrew/code/bzr/bzrlib/branch.py", line 2009, in _push_with_bound_branches
    result = self._basic_push(target, overwrite, stop_revision)
  File "/home/andrew/code/bzr/bzrlib/branch.py", line 2032, in _basic_push
    graph=graph)
  File "/home/andrew/code/bzr/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/home/andrew/code/bzr/bzrlib/remote.py", line 1974, in update_revisions
    self._set_last_revision_descendant(stop_revision, other)
  File "/home/andrew/code/bzr/bzrlib/remote.py", line 1777, in _set_last_revision_descendant
    history = self._lefthand_history(revision_id)
  File "/home/andrew/code/bzr/bzrlib/branch.py", line 190, in _lefthand_history
    raise errors.NoSuchRevision(self, revision_id)
NoSuchRevision: RemoteBranch(bzr+ssh://people.ubuntu.com/home/andrew/public_html/bzr/suspend-write-group/) has no revision <email address hidden>

bzr 1.13dev on python 2.5.2 (linux2)
arguments: ['/home/andrew/code/bzr/bzr', '-Dhpss', 'push']

The problem seems to be that the client isn't falling back to pre-1.13 logic when the Repository.insert_stream RPC is unavailable:

...
24.011 hpss call w/body stream: ('Repository.insert_stream', 'home/andrew/public_html/bzr/')
26.550 result: ('UnknownMethod', 'Repository.insert_stream')
26.551 hpss call: 'delete', '/home/andrew/public_html/bzr/.bzr/repository/upload/e7kiy5xz8xwglrmhbndo.pack'
26.551 (to bzr+ssh://people.ubuntu.com/home/andrew/public_html/bzr/suspend-write-group/)
26.904 result: ('ok',)
26.905 hpss call: 'PackRepository.autopack', 'home/andrew/public_html/bzr/'
26.905 (to bzr+ssh://people.ubuntu.com/home/andrew/public_html/bzr/suspend-write-group/)
27.274 result: ('ok',)

(Then just a delete, get, get_parent_map, and unlock. Then the traceback happens.)

Tags: hpss

Related branches

Andrew Bennetts (spiv)
Changed in bzr:
importance: Undecided → Critical
status: New → Confirmed
Revision history for this message
Robert Collins (lifeless) wrote :

Is this a stacked branch or non stacked?

Revision history for this message
Robert Collins (lifeless) wrote :

Workaround getting tested at the moment.

Changed in bzr:
assignee: nobody → lifeless
Revision history for this message
Andrew Bennetts (spiv) wrote :

Robert has landed a fix, and it works for me.

Changed in bzr:
status: Confirmed → Fix Released
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.