🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #2332

Re: [PATCH 0/2] odb/source-loose: fix failing existence checks caused by stale cache

#2332
From: Derrick Stolee
Date: Wed, 04 Nov 2026 16:27
26 lines
11829 bytes
On 11/4/2026 7:57 AM, Kristofer Karlsson wrote:
> On Wed, 4 Nov 2026 at 13:17, Patrick Steinhardt <ps@pks.im> wrote:
>>
>> Hi,
>>
>> this small patch series fixes the bug reported in [1].
>>
>> In summary, when git-merge(1) writes merged blobs it may be unable to
>> read them back because the loose object cache does not get updated.
>> Consequently, we may think that the blobs do not exist locally, and thus
>> in a promisor remote we may perform a backfill fetch. But as the remote
>> doesn't know those objects we'll fail.
>>
>> Thanks!
>>
>> Patrick
> 
> The fix looks good to me, and I verified that the test fails
> without it. My own local fix is logically equivalent,
> which is a good sign, though perhaps that biased my review.
I also think the fix looks good. (I haven't verified it locally
like Kristofer did, but the test is good.)

Thanks,
-Stolee
Technical Details
Message-ID: <55e14977-dfc2-4acc-bc71-a91915fa251f@gmail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74448-linux-kernel-git=dewy.ru
References: <20261104-pks-odb-loose-stale-cache-v1-0-a00d5cdb5e7d@pks.im> <CAL71e4ONN4OQUZ2S==0TRWqZgA8ogT0smRL3Rk46voTm+0Tihw@mail.gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74448-linux-kernel-git=dewy.ru
From: stolee@gmail.com (Derrick Stolee)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH 0/2] odb/source-loose: fix failing existence checks caused
 by stale cache
Date: Wed, 4 Nov 2026 11:27:52 -0500
Organization: Usenet Network
Message-ID: <55e14977-dfc2-4acc-bc71-a91915fa251f@gmail.com>
References: <20261104-pks-odb-loose-stale-cache-v1-0-a00d5cdb5e7d@pks.im>
 <CAL71e4ONN4OQUZ2S==0TRWqZgA8ogT0smRL3Rk46voTm+0Tihw@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="3430678"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:8mGq18AGru7CFM2chrdp4mhY5fE= sha256:IvRWsDYJskoDjlx517G9SL2BX/MulNXTPqLsRUg0dG0=
	sha1:5U6SO++MmpZU1jO+tf49OPuYEBk= sha256:Y6vol/r1lxfr1Dp+8fz6H/7GIA7gnLg0UEEddVnW248=
Content-Language: en-US
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 565BF112C62; Wed,  4 Nov 2026 19:34:49 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.949
X-Spam-Status: No, score=-1.949 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, 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 yb8IwTDQWLAO;
	Wed,  4 Nov 2026 19:34:46 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=git+bounces-74448-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id ACD12112C1A; Wed,  4 Nov 2026 19:34:37 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 1F9A52EE9A; Wed,  4 Nov 2026 16:27:57 +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=1793809676;
	b=uPIaw8oGjcofKtBEEs5XfI44Ea6WHxTCW3qkUlGoY8p0T0GtwBRX46PqRjQT4TIXolYd
	 ZlyPwA7Oy/w3ttbep6mkLYukZkghiVGUfjfHSFHsAqg1k8isfHjIpyYZRHnF0lmMIF2G8
	 ASUJUhWwEIEwCTo1BxAJtGzKW2R5hzNQuuqHzIZQbUVE6kBxYNHX3O7wuVYYD8zfpPWIc
	 kqe6Fzkv4AwrRtFmh+Em+VnhARiENcZ5Meh7OhzKGJTJXZ1+dZlRNi7lqU83iKGsbsT/o
	 9T5UhSzFg6Tlp1saIrs5HTULafPqkCufb2rX7egbMY31v92CJgNwG/zZEqiL6+9egjg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793809676;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
	 Received:Message-ID:Date:X-Mailing-List:List-Id:List-Post:List-Help:
	 List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 User-Agent:Subject:To:References:Content-Language:From:In-Reply-To:
	 Content-Type:Content-Transfer-Encoding;
	bh=PbXWM3jNLo1ZqwtJvPB5VpZ2GiYBvg5NG55UXdGyz9E=;
	b=qCCjNsQg+GGjHHqVT35DyxlK+fWtGRCAi7WCeZr51AlPZEmPdOrRCDrJk16aLObM/Vm/
	 GQ1UjSrHMCXKUiCkonaZQJRI0DnoyKcgTZWqsMmaYxA7YZih31WVewfWkmID45dHcJ9aZ
	 jxPk4iqUUNyRvZB2fItLedpoQpjXCxteL/XgFlqwolAVVgcBQT6W4OLUKL3cqckrYxw/x
	 c1O0Sl0RPPYr/GRmlswvoSg/GL/FYhSn5htymcnFEXLq4Ft/FScQn4wEWqSycFMS2YJ5u
	 7hGGIQ5xXrwYGWzsuoPxpOTRLdNLxHBvFdjBk5Ey2Z2g5rKK9pXkv5r4s+FMa0m78hw==
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=vXZYG0Ur;
	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 ED2DA606A329;
	Wed,  4 Nov 2026 16:27:55 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=vXZYG0Ur
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.219.50
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793809675;
	b=QJzxTOUqG6thqWNk5UfL1hFz/F6B7XAbJxy5rgnFLM/ZGzNrqggath+unnFQIAzC11m7
	 CA2+sqIC7TgiwCFDIXSrI50CaLuDCAHmZGg/gsw+XNpTSEopgE6ePKqzhQA69S/yYiUG0
	 hJHUyjtv/Yw6zZZN6WpqCNgnBwgCStsa3PWK5PeQ9QQoAF4OuoOiiarQYL2xMXYLpGDBZ
	 DMx91W8x6x33gZAg4rNytXjo0wv5QdyAwSCRonhsAMg0D8KI76dFFhjgvRoDqRTHWn8h8
	 1ov2WKFKRtwmZAtklbGHajZjyGdJoMSOrydG8QZlB4AvTlR9Hc+H3cF0XUrS21xd+vA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793809675;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Message-ID:Date:
	 MIME-Version:User-Agent:Subject:To:References:Content-Language:From:
	 In-Reply-To:Content-Type:Content-Transfer-Encoding;
	bh=PbXWM3jNLo1ZqwtJvPB5VpZ2GiYBvg5NG55UXdGyz9E=;
	b=AfAUi8S1L6eQofECMFDtJ4gyfoMmiAGEFEIuVHRvSkb3up6S+P+4iEuwO2DSg598mqMm
	 iwW1heSNVfgNmAH0zo3zlafu9Fbyg3DzDTThZEr+xRXvKykmOQ+f4zdF96ZCyZxazlpEU
	 xrXGWPqCOQUMjtGjccUIaepamdEnBRwN65Yv9uBEZzmMgAGkft0ldWrgGU7AyJdE5MQQ3
	 45JMS0UFI8AW5BphVUVqwASDwj0WgwD3Jd8PyyWcEu9igK4LcRwA0WoBsH76xDTCLQxe8
	 HZqYjT6xeo9Bade/u7trHAAMS1PqyQZ3IAB+e9nkA7NH6xosbJ0vA2AW8hHGhH4zgVg==
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=vXZYG0Ur;
	arc=none smtp.remote-ip=209.85.219.50
X-Received: from mail-qv1-f50.google.com (mail-qv1-f50.google.com [209.85.219.50])
	(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 BA6E3606A32D
	for <git@vger.kernel.org>; Wed,  4 Nov 2026 16:27:54 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BA6E3606A32D
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-qv1-f50.google.com with SMTP id 6a1803df08f44-91b54d1e9cdso8449966d6.1
        for <git@vger.kernel.org>; Wed, 04 Nov 2026 08:27:54 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1793809674; x=1794414474; darn=vger.kernel.org;
        h=content-transfer-encoding:content-type:in-reply-to:from
         :content-language:references:to:subject:user-agent:mime-version:date
         :message-id:from:to:cc:subject:date:message-id:reply-to:content-type;
        bh=PbXWM3jNLo1ZqwtJvPB5VpZ2GiYBvg5NG55UXdGyz9E=;
        b=vXZYG0UrTo8wNQ6ZYtvCUf0W2Fl94jgDYHHEJhPIUYiZrFchuV3os0/zYJTueACLh2
         v9ScVY9n8ibRLyJbJ+agIJqLb2oLRMz93ZJrpLTvTl5P8NgLgSUqKCsmr3ypy1dHO8Tg
         ljisNIsdayinVNlcYSlhZrOyWqc9NNQsrwJV7dm37CgRoonV5zU++OJb1eDDE9UP4Sdy
         +Gh47q6DQcEmfypXtMHwFiFjb74ht/ytvRwVqLeibMrdK05oOg/3EHnF+ecZZCetuS5A
         fD09KUHmVmKHYiRl2+ByK5wCMkx6Amp1V1Oz7ce4G9SDUIzQzBqkGSuJICvtag44Ybwd
         kDVQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1793809674; x=1794414474;
        h=content-transfer-encoding:content-type:in-reply-to:from
         :content-language:references:to:subject:user-agent:mime-version:date
         :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
         :message-id:reply-to:content-type;
        bh=PbXWM3jNLo1ZqwtJvPB5VpZ2GiYBvg5NG55UXdGyz9E=;
        b=tAAdmqqa00BcFM1Pq3qKAr4DrPNRXsBF1vz2AeAZ9H8m6iE4axOaEXdUJo505bEziV
         DSeKmh+r6cXMGaZpha6TU1ytHXJFk2mHfx1LAGzkPSYU+rJYPGvpciwScxI9/TXAWrNT
         Dqt482e08BVtjetX6a8f1y/9QtR7PvrC+tC7J+xC7nSprI4k8Qtp79hndnsjUStXo6CY
         wi5bCfx5r5iROwBgmkTsmFQkqFCx8fkuFxovup6NMDGbrDkbCIq2pDhsL+1pESf8MkSc
         pet9TqC7Xra2PSOnBWxzmyQbofYWpIwZOO/w3S+LTZcthfSrZpSk7jxJM19S8vjktEye
         ucxA==
X-Gm-Message-State: APuU4Z9rg7Gd7X0hOf5FuRQmEG3PIpQbcBsSaAPgO/D1yBnBmGp+nuAR
	Y6BRVjwu+7BWI2Me7NGgnfRaKf+PPTp0gbnSaHgsGlmxnBu1h9wmLY/Qwwt++A==
X-Gm-Gg: AYBFou3OM4qeyg6YpWTi0IolyZynEG0BT3A/6rzTNf0fRcLMFoUdnyDVJq11WdZeaoE
	Vg9jaAh12WcZvthwN6WoMPL5A2aEY9KW62+0kyimkd5eJKD4LOzEMN7aJUH8DGaQpvXKv0yGYWo
	eyZCJnaDuyFTl1ElKxYyxXRGQtAMTIpkpdlwtj/bvW+EcvT7NkSe0o1ufOmalXHD3IxIY5zv9VC
	vAyOQywVjmJXNAi0RmmLbyfiA6W2lSIl2DiMXLaTf2T3bMewcO2DZmIyVBMNDUiJBdg6Ao+O2O/
	5DtIo9bU6tBPZ+lUAM+q0EFCjt/4ds/x/q207pYO0YiROQf2jQKjdXzF1uOM/occd/xcYwJ2ZAa
	6LDjUa3zVNVtq59irlozhpyMcenYmwtEaOvsAcAdNrjzvXJCdtVDsRFHc3zAz7lXdQqmmeczn5n
	1smfsXLFguXSOwY3aNFcLdxtXThAtK1KZT6KI7IKeHdZj+bfaDfEx7/UTqk4VAyxEA3VmrbEL1I
	RcCGB2SBGycrX3f21BK2t8dP56jGtzmS1tfvdDAbvW072Bo6oi7MExg6azUF89vOIQMINfY3hos
	2Dr2d/kPLDuW+zSyeM+TxskaTb7u6rsCKK8TXMnbRtOEANGpbEsImyNUYkMlcwuJYUdICrMPbxK
	z99AJiuLVZBCEfCiLGPUzh7CUpX17I9ZXOcgYylIU3iPfIDchrQPgt45aeFc9Q5RjVIOdLPt+4t
	W1q3hJMtwqv8xHDy++Jqm1OEjqa2fKcTif1qKebp772RS8V0aqi+jg
X-Received: by 2002:a05:6214:311d:b0:91e:7e89:c8fc with SMTP id 6a1803df08f44-91e7e89ca54mr46237286d6.47.1793809673512;
        Wed, 04 Nov 2026 08:27:53 -0800 (PST)
X-Received: from [192.168.1.109] ([136.61.86.144])
        by smtp.gmail.com with ESMTPSA id 6a1803df08f44-91e896f09e3sm12488206d6.25.2026.11.04.08.27.52
        for <git@vger.kernel.org>
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Wed, 04 Nov 2026 08:27:52 -0800 (PST)
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-User-Agent: Mozilla Thunderbird
X-In-Reply-To: <CAL71e4ONN4OQUZ2S==0TRWqZgA8ogT0smRL3Rk46voTm+0Tihw@mail.gmail.com>