not a valid key error

Bug #889872 reported by Jelmer Vernooij
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Critical
Shannon Weyrick

Bug Description

I'm getting this error when committing to one of my repositories. This happens during repacking.

bzr: ERROR: The key '<email address hidden>' is not a valid key.

This is a regression in r6256.

Tags: regression

Related branches

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

I can also reproduce this on another repository, where it also happens during repacking.

tags: added: regression
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

(Pdb) print rows[-1].writer.bytes_out_len
2

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

(Pdb) print repr(string_key)
'changelog-20061227002451-5odpmebpo2vuu6ma-7\<email address hidden>'

Changed in bzr:
assignee: nobody → Shannon Weyrick (weyrick)
Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 889872] Re: not a valid key error

On 14 November 2011 06:27, Shannon Weyrick <email address hidden> wrote:
> ** Changed in: bzr
>     Assignee: (unassigned) => Shannon Weyrick (weyrick)

Thanks for taking this, Shannon. I might look into reverting your
previous change so that trunk does not stay broken.
--
Martin

Revision history for this message
Martin Pool (mbp) wrote :

bug 720853 is therefore reopened

Revision history for this message
John A Meinel (jameinel) wrote :

See https://bugs.launchpad.net/bzr/+bug/720853/comments/4 for why this is happening. But the short summary is:

During repack, we compress as much as we possibly can, to the point of creating a new zlib.compressobj once the page cannot hold any more content. At this point, zlib has buffered all the raw bytes and has only written out its little 2-byte header. We won't see the real content until finish() calls flush().

So instead, we should just change how we detect writing to an otherwise-empty chunk. We can do so pretty easily, which shouldn't have these false positives. (Instead of detecting how many bytes we've written, just detect that we created a new empty page.)

Revision history for this message
Shannon Weyrick (weyrick) wrote :

So, real fix for this should be in bug #720853, but I'll work on a regression test for this bug.

Changed in bzr:
status: Confirmed → In Progress
Changed in bzr:
status: In Progress → Fix Released
Martin Packman (gz)
Changed in bzr:
milestone: none → 2.5b4
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.