git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Bug in 2.26: git-fetch fetching too many objects?

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Apr 21, 2020, 19:36 UTC
Message-ID
<20200421193611.GA103469@google.com>
In-Reply-To
<xmqqblnkodi4.fsf@gitster.c.googlers.com>
Hi,
Junio C Hamano wrote:
> Jonathan Nieder <jrnieder@gmail.com> writes:
>> Dixit, Ashutosh wrote:
Show 9 quoted lines
>>> I am seeing a strange behavior in git-fetch in 2.26. I frequently fetch
>>> from a couple of linux kernel remotes (so you will have an idea how big the
>>> repo is). I have a different system with 2.20 on which I never see a
>>> problem.
>> ...
>> I suspect this is related to the change that protocol v2 does to use
>> stateless-rpc even in stateful protocols.  If my suspicion is correct,
>> then the same behavior would show up with protocol v0 over http and
>> https as well.
[...]
> This is at least the fourth time we hear that v2 may not be ready
> for the real-world use.  Perhaps we should revert the default flip
> on the maintenance track while we hunt for bugs and improve the
> protocol support?

That feels to me like an overreaction, since these are all reports of the same issue that we have a fix to. Shouldn't we just flip the default for fetch.negotiationAlgorithm to skipping? If we revert to buy time, what would we do with that time?

In other words, if I understand correctly, it's describing an issue that also exists in protocol v0 for https. I would be *very* interested in any evidence one way or another about whether I am understanding correctly. If we flip the default, I don't see how we'll get that evidence, since we've been using protocol v2 as the default at $DAYJOB for quite a long time now.

Thanks, Jonathan

Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 8 in “Bug in 2.26: git-fetch fetching too many objects?”
  1. Dixit, AshutoshApr 20, 2020
  2. Konstantin RyabitsevApr 20, 2020
  3. Dixit, AshutoshApr 21, 2020
  4. Jonathan NiederApr 21, 2020
  5. Junio C HamanoApr 21, 2020
  6. Jonathan NiederApr 21, 2020
  7. Junio C HamanoApr 21, 2020
  8. Jeff KingApr 21, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.