Bug 577937 - JGit fetch adrvertise all refs when fetched ref doesn't have parents
Summary: JGit fetch adrvertise all refs when fetched ref doesn't have parents
Status: RESOLVED FIXED
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: 5.11   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 5.11.2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-22 03:01 EST by Marcin Czech CLA
Modified: 2022-01-18 09:17 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Czech CLA 2021-12-22 03:01:46 EST
When fetching single ref without parents(for example Gerrit meta ref: `git fetch ssh://admin@primary-1:/gerrit refs/changes/99/260099/meta`) JGit during negotiation phase never sends `ready` message so client advertise all refs. This is impacting performance on large repositories.
Comment 1 Eclipse Genie CLA 2021-12-22 11:54:39 EST
New Gerrit change created: https://git.eclipse.org/r/c/jgit/jgit/+/189087
Comment 2 Luca Milanesio CLA 2021-12-23 20:37:39 EST
This is impacting when the *client* has a lot of refs to advertise, e.g. the pull-replication plugin in Gerrit.
Comment 3 Eclipse Genie CLA 2022-01-18 02:55:19 EST
New Gerrit change created: https://git.eclipse.org/r/c/jgit/jgit/+/189727