git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Jeff King <peff@peff.net>
To: Jonathan Nieder <jrnieder@gmail.com>
Cc: git@vger.kernel.org,
	Konstantin Ryabitsev <konstantin@linuxfoundation.org>,
	Taylor Blau <me@ttaylorr.com>
Subject: Re: [PATCH/RFC] config: default to protocol v2
Date: Wed, 8 Jul 2020 00:50:08 -0400	[thread overview]
Message-ID: <20200708045008.GC2303891@coredump.intra.peff.net> (raw)
In-Reply-To: <20200707053805.GB784740@google.com>

On Mon, Jul 06, 2020 at 10:38:05PM -0700, Jonathan Nieder wrote:

> Git 2.26 used protocol v2 as its default protocol, but soon after
> release, reports of edge-case regressions started rolling in.  So Git
> 2.27 returned to protocol v0 as a default (but with the various fixes
> in place to make protocol v2 safe) and Git 2.28 will use protocol v0
> as default but enable protocol v2 for those adventurous users that
> enable experimental features by setting feature.experimental=true.
> 
> Thus if all goes well, by the time Git 2.29 is being released, we can
> be confident in protocol v2 as a default again.  Make it the default.
> 
> This especially speeds up fetches from repositories with many refs,
> such as https://chromium.googlesource.com/chromium/src.
> 
> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
> ---
> Mostly sending this to get the discussion started about what changes
> we want before flipping the default.

I can't actually think of any changes we'd want to make. AFAIK aside
from the negotiation problem, v2 is good to go. When we flipped it off
by default for 2.27 out of caution, I had hoped we would flip it back on
for the 2.28 cycle to get more exposure.

I guess it may be too late for that now if we wanted to get more testing
and exposure during the development cycle. But I'm not entirely
convinced that buys us anything anyway. v2 was available via a config
setting for at least a year, and major hosting sites supported it, and
still nobody noticed the negotiation problem until it was turned on by
default in 2.26.

And that has been the only bug people have reported for 2.26. That
implies to me that:

  - we won't get significantly more information by leaving v2-as-default
    in "next" or even "master" before it actually hits a release

  - there probably aren't other major problems lurking, given that
    people clearly upgraded to 2.26, found the negotiation problem, but
    never reported any other issues

-Peff

  reply	other threads:[~2020-07-08  4:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-07  5:38 [PATCH/RFC] config: default to protocol v2 Jonathan Nieder
2020-07-08  4:50 ` Jeff King [this message]
2020-07-08 15:42   ` Junio C Hamano
2020-07-09 23:00     ` 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

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200708045008.GC2303891@coredump.intra.peff.net \
    --to=peff@peff.net \
    --cc=git@vger.kernel.org \
    --cc=jrnieder@gmail.com \
    --cc=konstantin@linuxfoundation.org \
    --cc=me@ttaylorr.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).