KeyError in _terms_for_file_terms lambda indexing 2a copy of Loggerhead

Bug #391459 reported by Matt Nordhoff
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bzr search plugin
Invalid
Undecided
Unassigned

Bug Description

Revision 370 of lp:loggerhead makes "bzr index" die with a KeyError when using a 2a repo. The previous revision is fine. It's fine in my old 1.9-rich-root repo, too.

That revision does some kinda complicated renaming, so it could be confusing things (in bzr-search or maybe even bzr):

$ bzr st -c 370 --short
+N serve-branches
 M loggerhead/history.py
RM* serve-branches => loggerhead/main.py
 M loggerhead/apps/transport.py

Hmm, the particular revision referenced in the KeyError (r261) is just a YUI upgrade, creating and modifying a bunch of files but not actually anything related to revision 370.

(My 2a copy of Loggerhead is at lp:~mnordhoff/+junk/trunk.2a, or http://bzr.mattnordhoff.com/bzr/loggerhead/trunk.2a/ for an actually up-to-date copy.)

bzr.dev r4475, bzr-search r71.

Revision history for this message
Matt Nordhoff (mnordhoff) wrote :
Revision history for this message
Matt Nordhoff (mnordhoff) wrote :

FWIW: Yesterday, it started complaining about a different revision, <email address hidden>. Today, it works perfectly.

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

Can you test a complete reindex?

Changed in bzr-search:
status: New → Incomplete
Revision history for this message
Matt Nordhoff (mnordhoff) wrote :

Seems to work now. Huh. Nice!

Changed in bzr-search:
status: Incomplete → Invalid
Revision history for this message
Robert Collins (lifeless) wrote :

Ok, if it happens again, please try to get a reproducable case - generally capturing the branch (and repo if theres a share repo) should let 'bzr index' to attempt an incremental index fail repeatedly. (Wiping the index checks full index but could mask corner cases - so don't do that if it happens again).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.