git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Martin Wilck <mwilck@suse.com>
To: Jiri Slaby <jslaby@suse.cz>, git@vger.kernel.org
Cc: konstantin@linuxfoundation.org
Subject: Re: Fetching 24 Linux commits = 1.2 GiB
Date: Tue, 21 Apr 2020 12:02:45 +0200	[thread overview]
Message-ID: <6cb9d009026cfb9918b2ceab3e43ec1cbc303de4.camel@suse.com> (raw)
In-Reply-To: <a5bce92f-ad19-75d4-1e34-dacc73321536@suse.cz>

On Thu, 2020-04-16 at 08:31 +0200, Jiri Slaby wrote:
> On 15. 04. 20, 15:56, Konstantin Ryabitsev wrote:
> > 
> I tried hard, but cannot reproduce. I noticed a difference between
> 2.25.1 and 2.25.1+protocol.version=2, though:
> 
> $ git config protocol.version 1 # the default in 2.25
> $ git fetch
> git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> 8f3d9f354286745c751374f5f1fcafee6b3f3136
> error: Server does not allow request for unadvertised object
> 8f3d9f354286745c751374f5f1fcafee6b3f3136
> $ git config protocol.version 2
> $ git fetch
> git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> 8f3d9f354286745c751374f5f1fcafee6b3f3136
> remote: Enumerating objects: 1433262, done.
> ...
> 
> Doing fetch v5.7-rc1 (which is 8f3d9f3 above) with proto 1 works. So
> the
> server obviously advertises different set of objects with proto 1 and
> 2.

I just had the same issue with several kernel repos. The affected repo 
is a bare clone of Linus' kernel repo, plus "stable" and various
maintainer repos as additional remotes.

Interestingly, a single "git fetch --dry-run" with protol version 1
"fixed" the issue. I hadn't expected that to happen, so unfortunately I
hadn't made a  backup of the repo before. As this is a 50GB bare repo,
I'd appreciate instructions on how exactly to archive/upload it for
debugging if this should happen again.

mwilck@apollon:linux.git[BARE:master]> git fetch --dry-run -v net
Looking up git.kernel.org ... done.
Connecting to git.kernel.org (port 9418) ... 136.144.49.103 done.
remote: Enumerating objects: 7331255, done.
remote: Counting objects: 100% (7331255/7331255), done.
remote: Compressing objects: 100% (1113751/1113751), done.
^C
mwilck@apollon:linux.git[BARE:master]> git config --get
protocol.version
mwilck@apollon:linux.git[BARE:master]> git config protocol.version 1
mwilck@apollon:linux.git[BARE:master]> git fetch --dry-run -v net
Looking up git.kernel.org ... done.
Connecting to git.kernel.org (port 9418) ... 136.144.49.103 done.
remote: Enumerating objects: 71, done.
remote: Counting objects: 100% (71/71), done.
remote: Compressing objects: 100% (48/48), done.
remote: Total 53 (delta 42), reused 0 (delta 0)
Unpacking objects: 100% (53/53), 8.06 KiB | 5.00 KiB/s, done.
^C

(this fixed the issue despite "--dry-run" and myself interrupting the
process).

mwilck@apollon:linux.git[BARE:master]> git config protocol.version 2
mwilck@apollon:linux.git[BARE:master]> git fetch --dry-run -v net
Looking up git.kernel.org ... done.
Connecting to git.kernel.org (port 9418) ... 136.144.49.103 done.
From git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
   9bacd25..a460fc5      master       -> net/master
 = [up to date]          v2.6.11      -> v2.6.11
...

Regards
Martin



      reply	other threads:[~2020-04-21 10:02 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-15  8:01 Fetching 24 Linux commits = 1.2 GiB Jiri Slaby
2020-04-15  8:11 ` Andreas Schwab
2020-04-15  8:16   ` Jiri Slaby
2020-04-15  8:23     ` Andreas Schwab
2020-04-15  8:27       ` Jiri Slaby
2020-04-15  8:34         ` Andreas Schwab
2020-04-15 10:52 ` Kevin Daudt
2020-04-15 13:56 ` Konstantin Ryabitsev
2020-04-15 15:08   ` Junio C Hamano
2020-04-15 15:16     ` Jeff King
2020-04-15 18:52     ` Jonathan Nieder
2020-05-20  8:53     ` Andreas Schwab
2020-05-20  8:57       ` Andreas Schwab
2020-05-20 10:05       ` Michal Suchánek
2020-05-20 10:34         ` Andreas Schwab
2020-05-20 19:40       ` Jeff King
2020-05-25 18:22         ` Lukas Wunner
2020-05-25 18:37           ` Junio C Hamano
2020-04-16  6:31   ` Jiri Slaby
2020-04-21 10:02     ` Martin Wilck [this message]

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=6cb9d009026cfb9918b2ceab3e43ec1cbc303de4.camel@suse.com \
    --to=mwilck@suse.com \
    --cc=git@vger.kernel.org \
    --cc=jslaby@suse.cz \
    --cc=konstantin@linuxfoundation.org \
    /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).