From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff King Subject: Re: git gc taking forever to reflog expire --all Date: Tue, 11 May 2010 11:30:49 -0400 Message-ID: <20100511153048.GA17974@coredump.intra.peff.net> References: <0C5B1A89-551A-4EC8-862A-C306A286FAF4@adacore.com> <20100511050134.GA9413@coredump.intra.peff.net> <3924516F-2626-41C0-8648-47A9481FA09F@adacore.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: git List To: Geert Bosch X-From: git-owner@vger.kernel.org Tue May 11 17:31:31 2010 connect(): No such file or directory Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OBrQg-0002Kh-W8 for gcvg-git-2@lo.gmane.org; Tue, 11 May 2010 17:31:31 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752028Ab0EKPaw (ORCPT ); Tue, 11 May 2010 11:30:52 -0400 Received: from peff.net ([208.65.91.99]:47696 "EHLO peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751400Ab0EKPav (ORCPT ); Tue, 11 May 2010 11:30:51 -0400 Received: (qmail 22891 invoked by uid 107); 11 May 2010 15:31:06 -0000 Received: from coredump.intra.peff.net (HELO coredump.intra.peff.net) (10.0.0.2) by peff.net (qpsmtpd/0.40) with (AES128-SHA encrypted) SMTP; Tue, 11 May 2010 11:31:06 -0400 Received: by coredump.intra.peff.net (sSMTP sendmail emulation); Tue, 11 May 2010 11:30:49 -0400 Content-Disposition: inline In-Reply-To: <3924516F-2626-41C0-8648-47A9481FA09F@adacore.com> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: [for those reading the list, Geert was kind enough to send me a copy off his repo off-list. Here's what I found.] On Tue, May 11, 2010 at 06:05:14AM -0400, Geert Bosch wrote: > > There are some corner cases that can cause the expire-unreachable > > algorithm to behave badly. The fix is b4ca1db (reflog > > --expire-unreachable: avoid merge-base computation, 2010-04-07), but > > hasn't been included in a release yet. > > > I tried with v1.7.1 + cherry-pick b4ca1db968eb57d9cd869337bffa254e0b2c83bd, > but that didn't solve the issue. Are you absolutely sure you weren't accidentally running an older version of git? I was able to reproduce your problem with git v1.7.0, but current 'master' fixes it. I bisected and ended up at b4ca1db. There is the possibility that cherry-picking b4ca1db isn't sufficient for some reason, but I didn't see any related commits that would make a difference. In either case, your problem is just another manifestation of the same issue, so it should be taken care of in v1.7.2. > > In the meantime, you can work around it with: > > > > git config gc.reflogExpireUnreachable never > > I had tried that too, but I guess I'll just have to be very patient: > 22707 ttys001 11:14.27 git reflog expire --all Sorry, this was my fault. Apparently the "never" token had a bug which was fixed in v1.7.0.3. If the git you were testing on was before that, then it would have done nothing. -Peff