🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #2973

Re: [BUG] repack --drop-filtered aborts when a filtered blob is referenced by the index

#2973
From: Siddharth Shrimali
Date: Thu, 12 Nov 2026 07:29
41 lines
11843 bytes
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: <20261112072921.19170-1-r.siddharth.shrimali@gmail.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!3.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-75266-linux-kernel-git=dewy.ru
References: <tencent_AC7FF23968DCD0078A6B863A42BCB5ED4E05@qq.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!3.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-75266-linux-kernel-git=dewy.ru
From: r.siddharth.shrimali@gmail.com (Siddharth Shrimali)
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 12:59:21 +0530
Organization: Usenet Network
Message-ID: <20261112072921.19170-1-r.siddharth.shrimali@gmail.com>
References: <tencent_AC7FF23968DCD0078A6B863A42BCB5ED4E05@qq.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network; logging-data="1034530"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:KBB10L4Z9msrXOzfQ6AjD3oWGiI= sha256:pc6Y7AFlTUizo+t27PvgPXLj6DiuC2ztPqq3aT73l5I= sha1:b4jkmSgOMjjKGRHxMG1dpvhxPyY= sha256:9VmMQkZMzOUhNMvUVsoOhxLEGD1LEJ8OvFwmX3wL/FY=
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 BD66C114139; Thu, 12 Nov 2026 10:31:25 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.149
X-Spam-Status: No, score=-3.149 tagged_above=-9999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=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 (2048-bit key) header.d=gmail.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 SHYpR-Dvj7n9; Thu, 12 Nov 2026 10:31:14 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=git+bounces-75266-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 6B053114135; Thu, 12 Nov 2026 10:31:03 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id B8429605A23; Thu, 12 Nov 2026 07:29:36 +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=1794468575; b=pu4sFgaCZrLqBPUnhO1K39cJ5kBx0HXDTzPczs21YFJpQLBodpfDR9HxwZoiN5WTHa2n jeimzYhESbitoxwmwdbg0uelQgTH6T1fRlYSHVAkfKZhr/ueOR1Uisgp9WQD0+x765lHB zw11v9Ebk5uuw7IAmaRWt05ZsH+5VP4gmRnSt87pfCzSZRQmKn100WxLenTYUc8uPB8jZ yZvoFQeIuE83scmI7xT6SAkqLZ6EKGIo87daAIxS438MNM41oNRF9fsitH6zRsKKvKqSu 7Qx1pm95j61NTBlgYLvVJwo+DTWfb6usb3i9DtA7mxRc91NKvo5yNiDCLOq3C7BhSzg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794468575; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature: X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received: Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To: References:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding; bh=rJl9QVExJntYCb/dbxze42QXj4SXIf2EBIDTPdk6Wd0=; b=dqBVyn8gkyvQ3YlxYxKD5eUMp3cLgayEfyg5Y5o5FN2rcaltbJiExfrIZPuLP1b6bSFM Qr/43CAiOYZKtS50raiVazAM0H3W0TSp8FhDNJGrkj9IT0W02DI02W+BHTLwkfpLZE1jO FWCiNGZug9ULjUx4urKwGCoDM3x1CX+sRKhVLVoDo/VNT+obF9Q39780TC/ORIjMdn1Zz 3sLySbqlUFEbpNwObbKGr7dzNElOe8SKDXl0bEw5bYu+bpi4iQSONlr95DE8fKEmHmwjQ 2eKXwLHrfVKfgu1bGPR3UbFlA4B2cD4SRg3jBaqXlaWJ7SgHCCDnUDBeTpdX1SWQ0lg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=iuf8RNIi; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.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 9D5DF606A327; Thu, 12 Nov 2026 07:29:35 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=iuf8RNIi
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.169
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794468574; b=SrVBCMJm5V/iYoY80U7zRNWR4oby0PKFSK67zDcYMXMwoI8pnj/FoKpjVPmCTC6rODEC JHzHLcPuyvZwZYaRt9M4B+nQqVq38lyLWHMvMFsPSlghagBX6tuZDzCkhZ3XneAQN3cAE 1G/eEms8zk8RuO6AZurwak3r/RVieccsN5jtXsVL8qsHGEnWS6QLjaRoLClft2PhdZgZ4 cjAoLhxeX6m+gvYbVt9XWV5cQQxZHfNdUvAjB1OTV2z8sPaskO53W/62PkEy5F2ctmK+S BdjOEUNsPojIHya5kS3s87wXiggzha5SxTTFnjuWLSK/oCpeicQe86XdcK/WbYgTcbQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794468574; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=rJl9QVExJntYCb/dbxze42QXj4SXIf2EBIDTPdk6Wd0=; b=18vklBsWGkpmXxsAfQKPyFFik4EvixDn1atiUco/8oaBt7Jih/XSL1+YQRM0U64nZLhv zmOvNh6ePgdF5gdBkkdIL4HiYdD0b2cVjX6n74mFYYhdBEVkUpH+kcFbAEhTNI8dPGPl+ EzLaHeTwUP1FD/27xI52l3BePmISydT3CvO9+GaMa6LpkKpmDK5hrUVXCMEdie2YsxuNY hJfPqWEeqexH7uKlmsItVZLbcOyYrNNB+Y8+GwHWnO6SdrgxjZCFd5bKe6GbqgxbsSDC7 sY2leGyzDQ1JW+67qAn0UXi/FW6r8PQNFEke+Eo7uCEIj7csZiDHUi+Fg/tedep5WVA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=iuf8RNIi; arc=none smtp.remote-ip=74.125.82.169
X-Received: from mail-dy1-f169.google.com (mail-dy1-f169.google.com [74.125.82.169]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 69453606A31C for <git@vger.kernel.org>; Thu, 12 Nov 2026 07:29:34 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 69453606A31C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-dy1-f169.google.com with SMTP id 5a478bee46e88-3700ed8dbe3so7233948eec.0 for <git@vger.kernel.org>; Wed, 11 Nov 2026 23:29:34 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1794468573; x=1795073373; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=rJl9QVExJntYCb/dbxze42QXj4SXIf2EBIDTPdk6Wd0=; b=iuf8RNIiMe1fc6Cgbc0b8O4nWyjqwBvNdPzzaRE2h2i9CPV0cu7VgZEhCq/4tT2AJS 5qaEAaf5QuF9i8pCoyPAYGRP8aVbLKKBZfnIi5htn3VsVDK7mWSnhnfH+DRRgasVFWge IK5IhnEAjUjEKPUZY4MPfy38LekmnQmegsdg89wEUl5tYr3Mqu3Q91E9RXR1cttyyqm4 9/zim73JJ0BL+tbQRp287yfYlCGsGUqkz9JhY94ns3qQ8sZXDij0Ne0GeMYb3UM8RR73 IWs2yag5fBVSerk6DA/V6b53PBHAAJqR2p8RsU1SEiLcTTZQbE6GYkJ+ny1xpc3S4uor wOlw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794468573; x=1795073373; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=rJl9QVExJntYCb/dbxze42QXj4SXIf2EBIDTPdk6Wd0=; b=AmOMgMw/hsN0kA6/eg3pj0cUQQI4lIEsQd0lNWcyIVju81RqOOx3a/j4QUnwOBabSz Onqb84VjIcsaqBFHUaxrwzF9KRjulDu5tqrd/N7VqzCBzmQ3CeHwfgrMHPRq319p8exU b25cjdeZ35qMkK6lEEitB+YxyPgxYG23IvIo4dAoo5XBp8RSabfzWmyL512ojhYKdly/ T2gXbUNLbERt1MnOLszkezpj/etejSjpL5jG6Ca4x63niZLgEg/Hkn9Sp/96QSLi1qGg H8guzhXQkWgWe5+dLLIPWY5HwjQ2gBM8AAXqSo+eFmGkGwU8sKBEmpps0VK36tNkHKcX agLw==
X-Gm-Message-State: APuU4Z9E9FRZWJIp3sbGdBIXAn1xsjyc2jQYaDnMGutj2wRx91QtqSiN 0GjfLAY2xk5bFG29MLs6uULrJFlxWC2LiWvtp2YY1NtK4pxFix3Gt095
X-Gm-Gg: AYBFou2q76ha+YQdbPE71JNCqE0QpIrVwnlask4zV7q9GbvZSS2g/lJPvVSCUUcm6Wm e7XbxwogbFTC2vJBHbD6HoZdzWu/JBirhLelRFp44n/5xJmcBTCV0E+S1TBZc2KecXWThL1x0dA OiZNgGE0qNJODvqZzNcvm7ThXU+fKDHSoaaVUgpAEVa9KvS+aTMKONuqvZK5mjTcr+Ca0rJmKCH DdF3jKfDdXwLVRJxcFhy2kI/AmGnXQmohvT6VcCjJUONkatyQxfgj22m2Z2N53+TD21kSs7IZUH HlYjv0hW/Ry8VwL3INdg2F95Kv4yKsuzYFPKFmmp4R00L7uc11osjVIeS250sNJxsSQIG2yL6Vv 6zKsU27aocJ8sSQBHZ/j+3nh1ZkvzNwFRuG/mXKCPit2zrSNiBipdP/Bmpx4IJGUuGUvfqecQiG CSdTwxjipWiLWAnlRaW6/p90g9YCVvIQYLGBbh3DKDiLNO+kRmx0WZmiG3OVA+HH6H/kBAy02RU tn/QqTcApYhLTMs9HQwsno2sGmZVgqhIGzoEU++EmzmqxqPVZGK9u/d5IJl7XAICUJ8cYkUrRyC LtDORrXbtcCslJAn2JoECU9DIs8vP12KLfAwOsfCgESiJ4r6/b+BXFUNjgwXwnViW+zPIcOg5FI nm+sC6IBZINvRUhe10fhgRcDmGSulevL62g2SyyhKs4loO+mnJOQE+fIzdc9qsETbVeza3psm51 JqzFhzHfc=
X-Received: by 2002:a05:7300:e915:b0:369:fb01:2eb7 with SMTP id 5a478bee46e88-37685a88c50mr4866590eec.13.1794468573335; Wed, 11 Nov 2026 23:29:33 -0800 (PST)
X-Received: from localhost.localdomain ([2401:4900:88fa:bbbf:d8e4:1ec8:23ae:2224]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3751fe3261csm20609659eec.4.2026.11.11.23.29.30 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 11 Nov 2026 23:29:32 -0800 (PST)
X-Cc: git@vger.kernel.org, Samuel Bronson <naesten@gmail.com>, Siddharth Shrimali <r.siddharth.shrimali@gmail.com>
X-Mailer: git-send-email 2.56.0
X-In-Reply-To: <tencent_AC7FF23968DCD0078A6B863A42BCB5ED4E05@qq.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