git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Derrick Stolee <stolee@gmail.com>
To: Filippo Valsorda <valsorda@google.com>,
	git@vger.kernel.org, Jonathan Nieder <jrnieder@gmail.com>
Subject: Re: BUG: commit-reach.c:66: bad generation skip
Date: Sun, 7 Feb 2021 21:26:02 -0500	[thread overview]
Message-ID: <c19b6e23-96cd-fd0a-163d-826b46b51da0@gmail.com> (raw)
In-Reply-To: <CA+2K_KqH=Gn=Yx-UYzMBO+gZje3G3PJ_3-5HeO81wyZKvVwOSA@mail.gmail.com>

On 2/7/2021 5:31 PM, Filippo Valsorda wrote:
> 
> On Sun, Feb 7, 2021 at 11:28 PM Filippo Valsorda <valsorda@google.com> wrote:

>> [System Info]
>> git version:
>> git version 2.30.0

_This_ is interesting. I haven't heard of this problem happening
in a released version of Git.

I'm CC'ing Jonathan Nieder who recently saw this happening, but that
was on a newer version than 2.30.0 with a topic that is not part
of 2.30.0. But maybe the version shipped internally is versioned
without extra information on top of the latest tag? (I see your
@google.com email, which makes me think you have an internal version.)

>> What happened instead? (Actual behavior)
>>
>> BUG: commit-reach.c:66: bad generation skip     ad18 >        7 at
>> be28e5abc5ddca0d6b2d8c91b7bb9c05717154e7

This was recently reported, but it was thought to be due to an
in-process topic branch. If you recently had that version installed,
then your data would have needed a rewrite anyway.

This hints towards more problems with generation numbers across
split commit-graph layers. (The child has generation number 7, so
it is likely part of a thin layer.)

This might be sufficient evidence to convert this BUG() to a
warning with something like:

  warning: The commit-graph file has incorrect reachability index
  warning: information. Results may be incorrect until commit-graph
  warning: is rewritten with 'git commit-graph write'.

This could also be a die() instead of warning(), as that command
itself might return incorrect results.

> I was able to workaround this bug with a "git gc" invocation.

Yes, this will delete (and possibly replace) your commit-graph file
where the bad data lies.

To better understand your situation, could you please run the
following commands?

	git config --get-regexp graph
	git config features.experimental

I'm specifically looking for values of fetch.writeCommitGraph and
gc.writeCommitGraph.

Thanks,
-Stolee

  reply	other threads:[~2021-02-08  2:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-07 22:28 BUG: commit-reach.c:66: bad generation skip Filippo Valsorda
2021-02-07 22:31 ` Filippo Valsorda
2021-02-08  2:26   ` Derrick Stolee [this message]
2021-02-10 12:18     ` Filippo Valsorda
2021-02-10 12:24       ` Derrick Stolee
2021-02-10 20:14         ` Junio C Hamano

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=c19b6e23-96cd-fd0a-163d-826b46b51da0@gmail.com \
    --to=stolee@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=jrnieder@gmail.com \
    --cc=valsorda@google.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).