From: Junio C Hamano <gitster@pobox.com>
To: Jeff King <peff@peff.net>
Cc: Lars Schneider <larsxschneider@gmail.com>,
Git List <git@vger.kernel.org>
Subject: Re: [PATCH 2/2] index-pack: detect local corruption in collision check
Date: Sat, 01 Apr 2017 11:04:34 -0700 [thread overview]
Message-ID: <xmqqshlsuhql.fsf@gitster.mtv.corp.google.com> (raw)
In-Reply-To: <20170401080931.t67jbtta4w4enui6@sigill.intra.peff.net> (Jeff King's message of "Sat, 1 Apr 2017 04:09:32 -0400")
Jeff King <peff@peff.net> writes:
> is not a collision but rather local corruption. We should
> reoprt that instead (just like we do if reading the rest of
> the object content fails a few lines later).
s/reoprt/report/ (locally amended while queuing).
> We may want to tighten that up. In the long run, I'd love to see
> unpack-objects go away in favor of teaching index-pack how to write
> loose objects. The two had very similar code once upon a time, but
> index-pack has grown a lot of feature and bugfixes over the years.
This sounds like a nice future to aspire to reach.
Besides having to maintain two separate executables, another
downside of the current arrangement is that we have to make the
decision between streaming to a single pack and exploding into loose
objects too early and base our decision solely on the object count.
If we are moving to a single receiver, it is conceivable to switch
to a scheme based on the size of the incoming pack (e.g. spool the
first N MB and if we run out we write out loose objects, otherwise
create a new pack, and dump the spooled part and stream the rest
into it while indexing).
Thanks.
next prev parent reply other threads:[~2017-04-01 18:04 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-31 16:05 SHA1 collision in production repo?! (probably not) Lars Schneider
2017-03-31 17:27 ` Jeff King
2017-03-31 17:35 ` Junio C Hamano
2017-03-31 17:45 ` Jeff King
2017-03-31 17:48 ` Jeff King
2017-03-31 18:19 ` Junio C Hamano
2017-03-31 18:42 ` Jeff King
2017-03-31 21:16 ` Junio C Hamano
2017-04-01 8:03 ` Jeff King
2017-04-01 8:05 ` [PATCH 1/2] sha1_loose_object_info: return error for corrupted objects Jeff King
2017-04-01 17:47 ` Junio C Hamano
2017-04-01 8:09 ` [PATCH 2/2] index-pack: detect local corruption in collision check Jeff King
2017-04-01 18:04 ` Junio C Hamano [this message]
2017-09-12 16:18 ` SHA1 collision in production repo?! (probably not) Lars Schneider
2017-09-12 17:38 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqshlsuhql.fsf@gitster.mtv.corp.google.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=larsxschneider@gmail.com \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).