Article View: linux.kernel.git
Article #2974Re: [BUG] repack --drop-filtered aborts when a filtered blob is referenced by the index
From: "kongfankaikai"
Date: Thu, 12 Nov 2026 07:49
Date: Thu, 12 Nov 2026 07:49
42 lines
12308 bytes
12308 bytes
Hi Siddharth, Thanks for the explanation and the update! It's great to know that a fix is already being worked on. I'll keep an eye on the discussion. Thanks 原始邮件 发件人:Siddharth Shrimali <r.siddharth.shrimali@gmail.com> 发件时间:2026年11月12日 15:29 收件人:kongfankaikai <kongfankaikai@foxmail.com> 抄送:git <git@vger.kernel.org>, Samuel Bronson <naesten@gmail.com>, Siddharth Shrimali <r.siddharth.shrimali@gmail.com> 主题:Re: [BUG] repack --drop-filtered aborts when a filtered blob is referenced by the index Hi, On Thu, Nov 12, 2026 at 12:51:07AM +0800, kongfankaikai wrote: > When a blob selected by the filter for dropping is referenced by the > current index, Git aborts the entire repack with: > > `fatal: cannot drop 'path/to/large-file.bin' (object-id): it is > referenced by the current index` > > This stops other eligible blobs from being dropped, even though those > blobs are not referenced by the index. Thanks for the report. This is a known limitation and a fix is already planned. Samuel Bronson ran into exactly the same thing on a real llvm-project clone and sent an RFC patch for it in September: https://lore.kernel.org/git/s0vqzjavw8p.fsf@gmail.com/ and I agreed with the direction there: https://lore.kernel.org/git/CAGWgyh9B=re06aofii9VFB1xOwEeTtxYE=7T14m9WFAx1ORpMg@mail.gmail.com/ > Is there a specific reason this condition is treated as fatal rather > than skipping the affected objects? > > This behavior would be especially helpful for partial clones with > large working trees. No correctness reason. The guard only avoids dropping a blob that the next command would lazy-fetch right back, so such a blob is never at risk. Aborting was simply a conservative version of the guard, and as you and Samuel point out it is a poor trade-off. The fix is to replace the die() with a warning and drop the remaining eligible blobs. I am working on this and will post it to the list. Thanks, Siddharth
Technical Details
Message-ID:
<tencent_EB6E67B22EC8C9D00D0A7D062B62BB95ED05@qq.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!git+bounces-75267-linux-kernel-git=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!git+bounces-75267-linux-kernel-git=dewy.ru
From: kongfankaikai@foxmail.com ("kongfankaikai")
Newsgroups: linux.kernel.git
Subject: Re: [BUG] repack --drop-filtered aborts when a filtered blob is referenced by the index
Date: Thu, 12 Nov 2026 15:49:09 +0800
Organization: Usenet Network
Message-ID: <tencent_EB6E67B22EC8C9D00D0A7D062B62BB95ED05@qq.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: base64
Injection-Info: usenet.network;
logging-data="1039228"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:SVhWnKABJPDZVu90sRnNjxHGtg8= sha256:JJDKDn7dz82l7YMOR1NImaTOnDurzu7T/9UFhJr5QIU=
sha1:lsXJsshe112SeDApJCbHVXZp0UU= sha256:FxRZw0+54TlRC+vdCTVVVKKYvh4QT7aGVN0ypIFxJdg=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id EF367114147; Thu, 12 Nov 2026 11:07:40 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.948
X-Spam-Status: No, score=-1.948 tagged_above=-9999 required=6.31
tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, FROM_EXCESS_BASE64=0.001,
HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
header.d=foxmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id CvN0dkTfczOk;
Thu, 12 Nov 2026 11:07:37 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=git+bounces-75267-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=foxmail.com
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
by mail.dewy.ru (Postfix) with ESMTPS id 03B7B1140E8; Thu, 12 Nov 2026 11:07:27 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sin.lore.kernel.org (Postfix) with ESMTP id DA7D4A37CA; Thu, 12 Nov 2026 07:51:12 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1794469764;
b=3jtvfLrqaIrPwdvqiuhOh3iDa8zchK9uM+VcAfl73kaxt1NFCz2f14QXOl/n5dWWfk85
dsNJ6cM1lXXQLjqxN4Dz4FwOltr/eoLjVUdohTw0VrjofUXXqcAbHjOD26kuVoIz6DUXk
OKaYqvsPCZEdV5MVtVgr85ngWAC2+YkFmzrSy1o6GAM3hrvIXOYhRVT2BCUfkNHLGQWFT
n9+nXWLiyHHBk1T2VqRDPIMC0JOycFMCweeFlToxVM+TW+ETNHZ/GkdzBZjqJfSsZ6oK4
fdMEcgdh+pG4lOzCvLIMy6mF/DyZKd1+58Rgn7R3pmahLyF+vaAY6Nm8/RZ/iRJ7C4w==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794469764;
h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:X-QQ-XMRINFO:
X-QQ-XMAILINFO:From:To:Cc:Subject:X-Mailing-List:List-Id:List-Post:
List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
Mime-Version:Content-Type:Content-Transfer-Encoding:Date:X-Priority:
Message-ID:X-QQ-MIME:X-Mailer:X-QQ-Mailer:X-QQ-mid;
bh=PL3m/siHu9bO34ndPMKj9jhzDp83j1nIyfMy/rQ53uU=;
b=TvYjH6x9d3kvFDjLRGjq6j+7xrDQbeBCtcK5HNkG2nl3LH3l7ESHkUKxtmFfWrt7LiE9
z7cwHyeAF1WNHA9WKEzPgx1ncTdRIQ7ghMPPnEtgfM4YUuNfKYkvTrjBewBFyMc0r7oxW
Rfu44cry/sGgbA4uQ7kkMrI8GYi+GyO6Np6pjjnlDYdrhUeZJvvVYO5xyQWPOP9t+Us9B
r+H6YkE6nDRZuDcStXgEojWBM48Tnv4Uq7DvHNpuF7HlS54S+LF8/auomlImTYsUdgKw2
wA+GQUwGQGwXQ9jf58IKywaAqHgig1PF3iHq72I6KmtXu+xZ09614H7BtEJiRQBSfCg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=foxmail.com header.i=@foxmail.com header.a=rsa-sha256 header.s=s201512 header.b=mfbgQQo5;
dmarc=pass header.from=foxmail.com;
spf=pass smtp.mailfrom=foxmail.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 452B460A6F74;
Thu, 12 Nov 2026 07:49:24 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (1024-bit key) header.d=foxmail.com header.i=@foxmail.com header.a=rsa-sha256 header.s=s201512 header.b=mfbgQQo5
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=162.62.57.137
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1794469763;
b=tMRTktN7pxG7YEURFmK4tHvdroLFLRWxc5uzaGQ6jYhx6n3DbraD5IcYKIGVmh8aR/9y
x5T0qgczNfNyOcfaNWXlr69gP0oDWGzC3wn4tcZhSP/a9m4FhlCWszNWNttQLZo4yQ7D2
2jrELOX45AmkIP9e9ca0ZmqoPKUtLCgwBavpKUOkbLf7FvQHwmYWYOc9oHqh6SJmh/s48
hrlUh30bOG/pqJ6V5Ty76Hcl4Xkc+arslxvDv7Ah+V4pjeGlpagDf5InVpZki6qMNMhoU
QCBxhzBjiOA+U36O0Be5pYbIqCio3JD6yO80PwWVjdd0KyWSZP2Ig5G0hq+f4YozoUA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794469763;
h=DMARC-Filter:DKIM-Signature:X-QQ-XMRINFO:X-QQ-XMAILINFO:From:To:Cc:
Subject:Mime-Version:Content-Type:Content-Transfer-Encoding:Date:
X-Priority:Message-ID:X-QQ-MIME:X-Mailer:X-QQ-Mailer:X-QQ-mid;
bh=PL3m/siHu9bO34ndPMKj9jhzDp83j1nIyfMy/rQ53uU=;
b=hmPezoaSOQfYYTOogBa4SMsmvW5HJFrJDbvz2nEZ8G5iIf28Nkl/JbbMorwGw4IJXBnV
8wWWAtTF0z+rAppvK9mxSQvHfPrGX481/OGwhWrKCQwwOJpLsT3y0T2So6uPCP7uB+6g8
XUfUgrV8opi4xiFhhryrYOWCtPeIWBtYPW9XkzsOYKsX80SooSIfF5nK8Uq1L7vyr5+n1
xJ65glgeCx73zSqG/0u+L1gcnA38MiXQ7PoHTv2KxKiZijfL4pOv+BsfoiMTeuvcShEx7
KfWw7EZXNTBFFu7cgr7izvrfcdaAJBBDc2aUqvNafjq9A5G+4kJ1E8NzUUg5GJrrqhw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=foxmail.com;
spf=pass smtp.mailfrom=foxmail.com;
dkim=pass header.d=foxmail.com header.i=@foxmail.com header.a=rsa-sha256 header.s=s201512 header.b=mfbgQQo5;
arc=none smtp.remote-ip=162.62.57.137
X-Received: from out162-62-57-137.mail.qq.com (out162-62-57-137.mail.qq.com [162.62.57.137])
(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 999FD60A5BE9
for <git@vger.kernel.org>; Thu, 12 Nov 2026 07:49:20 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 999FD60A5BE9
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foxmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foxmail.com
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com;
s=s201512; t=1794469751;
bh=PL3m/siHu9bO34ndPMKj9jhzDp83j1nIyfMy/rQ53uU=;
h=From:To:Cc:Subject:Date;
b=mfbgQQo5cAQuhdBCdqf4GBqHMA+LpIssEHc1GUf8Ah7oKOfDK5Ulv8D+9jWPqJZG5
jf9olT6IGnvFIjluktvJ0RLDYAeG6XXCkF/fPmyROY5UPyU5csq/1OyAPceXtK0/QH
igzLKTpqwNDQb9Y0KmD4VvJIqqeS4D8IPnd/ZcbU=
X-QQ-XMRINFO: NI4Ajvh11aEjYm/R9hkdfFFQ7ssSdEshmA==
X-QQ-XMAILINFO: NRrO+V1v8gUcZgeVy8ODQdi08UvAJRC8qTQ9cD6NXLPyWRTYRDlyQAKpcM3NPy
DKLAD96Xw2aG8SIvSZdtodjovfbug5TCpKcXvzjOEsqZifYo9F/9ViZ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F/fhlMxeF8XT68MiLPOfd6CwHAw
6t+56E09Etz
X-Cc: "git" <git@vger.kernel.org>, "Samuel Bronson" <naesten@gmail.com>, "Siddharth Shrimali" <r.siddharth.shrimali@gmail.com>
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list
X-Priority: 3
X-QQ-MIME: TCMime 1.0 by Tencent
X-Mailer: QQMail 2.x
X-QQ-Mailer: QQMail 2.x
X-QQ-mid: xmsezb58-0t1794469749t8973obfs