Article View: linux.kernel.git
Article #2439Re: [PATCH 2/2] object-file: return error on index-pack abnormal exit
From: Justin Tobler
Date: Thu, 05 Nov 2026 18:06
Date: Thu, 05 Nov 2026 18:06
22 lines
11581 bytes
11581 bytes
On 26/11/05 04:30PM, Patrick Steinhardt wrote: > On Tue, Nov 03, 2026 at 03:24:10PM -0600, Justin Tobler wrote: > > When git-index-pack(1) exits abnormally after reporting the packfile > > name, `odb_transaction_files_write_pack()` records an error message in > > `err_msg` but still returns success. Current callers ultimately discard > > the return value, so this does not cause any issues at present, but the > > return value should still reflect the failure. > > Is this a theoretical concern or does git-index-pack(1) perform any > important steps after reporting the packfile name? I think we should of > course respect errors in either case, but I wonder whether this is a bug > fix or whether it's a simple cleanup. This is a theoretical concern. If `read_index_pack_report()` returned success and finish_command() returned an error, `odb_transaction_files_write_pack()` would append an error message but return 0. This isn't really the correct behavior. In this case though, it doesn't cause any bugs because the return value is ultimately discarded by its callers. -Justin
Technical Details
Message-ID:
<auzC7sZ95tL-5Axv@denethor>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74578-linux-kernel-git=dewy.ruReferences:
<20261103212410.1389988-1-jltobler@gmail.com> <20261103212410.1389988-3-jltobler@gmail.com> <auyhIvMHLomMQrPm@pks.im>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-74578-linux-kernel-git=dewy.ru
From: jltobler@gmail.com (Justin Tobler)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH 2/2] object-file: return error on index-pack abnormal exit
Date: Thu, 5 Nov 2026 12:06:47 -0600
Organization: Usenet Network
Message-ID: <auzC7sZ95tL-5Axv@denethor>
References: <20261103212410.1389988-1-jltobler@gmail.com>
<20261103212410.1389988-3-jltobler@gmail.com>
<auyhIvMHLomMQrPm@pks.im>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
logging-data="3697796"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:m+5VpFBJHIOkUy82+dWuTP8qVpM= sha256:Pzl9wY/YERPf/UfIBZp0EZ/MdR5chNS1PVS2+kCFm4s=
sha1:uAT43yUNGJ2Tpv83P+yS1+e2rb8= sha256:iEpsGfoUfKTcw0kghRZ4uOeoPlLpd47esh7GN6f0gw4=
Content-Disposition: inline
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 DF00B113050; Thu, 5 Nov 2026 21:09:13 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31
tests=[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 cqGIYoZQofg1;
Thu, 5 Nov 2026 21:09:10 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-74578-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 6B33111304D; Thu, 5 Nov 2026 21:09:02 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id E866729437; Thu, 5 Nov 2026 18:06:53 +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=1793902013;
b=Cz+plvNtljtEwtvbOfdm4Ug5dq/cvVpJw+XIsCNqEVV1f6gRu75REC4pHwz+OzIMmnzg
HvfJJuDoSwY/LjvPJlXfLkWRHsQI+sYZhjjmYH1DFaOc6o6wToKrZZ4F7Tg8p0karV/Fs
a6nHQQHeBGtqO3m7u6pTZN3E+0w8LPkovu8cEHjFbHVLj63IkZ55Uf+5300J6C7oe6hh7
CcFOw52E/HjtCp5ebwtU0x869LBRQX/A+3Ef9Tuq9A1oUhNFi8RXb0oL0AH9/1zwVMJT0
cLfYjluvEAmSMMB09AJ8FZTO65DdMCjoO6y48/MWl0q+Ta+tdzOiIrHYdl/K/2Kirtg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793902013;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:Date:From:To:Cc:Subject:Message-ID:References:X-Mailing-List:
List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
List-Owner:Precedence:MIME-Version:Content-Type:Content-Disposition:
In-Reply-To;
bh=T8sEprQNW8eBuCYiQUa50NXEGaOL6nJICBmmSxlYWyw=;
b=C4WzQaus6G4pCzQYeeNlCVZqNjPJlAClTVOfsZtF/l3HgQdiYIGs6dl9Yl0qKCr41ryU
KDGXPjPzPUp82fvsApWyIEEjG1xzXKOtOKo/IJbzeURniWhjIY92p6IWV7GlC9+gaTl0k
t90aBu1I9+lfIh23gOdRVebwdKR1MLlcN+ES2zWXptaYp4s7MiHh9pq8rywjC6DaM696N
AGukn8M+XDB3Nh6xLIsJQNvfdoH4pHqb4KpkCOlB4buoZa+naJ/oO7fcIC38TJYVh0wRZ
mSbGz3fsVU7tlVw4Vbx54qTQmdiTNg5Ex9HVKvdU1gkpuDDV9jKf8r+JynT3QzDXSzw==
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=lCW0SKmf;
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 BEDF2606A32F;
Thu, 5 Nov 2026 18:06:53 +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=lCW0SKmf
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.161.54
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793902012;
b=RsJ7iLOubyeleX8Jc2OasQHy+1M9ESRPNb6So39swtIiWbS7PprGAMAkX932e/qjfzIL
HzuqIOmIFeKSdOQQwwoDq3GNa3d97x8QfAGtUfNphF3aUzIHegs6vwl/tLYDAtxU6avz5
eKVTGBMPDCuAK+rZlhQAH7WRxOnFmYtXYN8KvsBqVILnWAlsdjwIcjTj3MiLI3cci7hwi
I9iEUFiy8SktwTmTazUcIGi9xUTTaLu2e8Z7DaiKx1vfjQ46JvV3sIT2Ok+Th5+iyOsGR
3MWVy4LK/r4Cycx/t2jQLHs7HZS20ap8pfumIDRtfqQiRJOuMUFLOGS5oGSehS4Upnw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793902012;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Date:From:To:Cc:
Subject:Message-ID:References:MIME-Version:Content-Type:
Content-Disposition:In-Reply-To;
bh=T8sEprQNW8eBuCYiQUa50NXEGaOL6nJICBmmSxlYWyw=;
b=WNlth+Nx7QLcO2T3DufRWhUnqhZJpKTu2rUuMYI9MVE60IMvu//zLPs1rA1hXcPZSFuH
S8vcbt1TWmRZ0XobKQMqUCSDkqPGfy8hr3nED4AXIyYw+v1gyPwiur10M24Tf7jskUovc
jkJk3XlPVQNBQIAecUXru/WEqgDP5gdrORkISNY2+g8rlyZqsbFZ5n74b+EkNvLZVxxJP
3IFXmOVpx8K7DYPn7oAsYTFUnB+aguAMnsJlhtOwT99bixARERLeW7yggIh7I3toAqUdx
WQqVCzvzhXkIIdGCGTKVWof1tL9Hu3fuNh5Oo1IQ5ZmbsbE6thxUluBSz3hOYiPi1/w==
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=lCW0SKmf;
arc=none smtp.remote-ip=209.85.161.54
X-Received: from mail-oo1-f54.google.com (mail-oo1-f54.google.com [209.85.161.54])
(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 8F27F606A31B
for <git@vger.kernel.org>; Thu, 5 Nov 2026 18:06:52 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8F27F606A31B
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-oo1-f54.google.com with SMTP id 006d021491bc7-6b19e291cc6so1912820eaf.2
for <git@vger.kernel.org>; Thu, 05 Nov 2026 10:06:52 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1793902011; x=1794506811; darn=vger.kernel.org;
h=in-reply-to:content-disposition:content-type:mime-version
:references:message-id:subject:cc:to:from:date:from:to:cc:subject
:date:message-id:reply-to:content-type;
bh=T8sEprQNW8eBuCYiQUa50NXEGaOL6nJICBmmSxlYWyw=;
b=lCW0SKmfd1VZuqUrhD/Xkbb25Zkvb1xSR6Hb2qAPxGZk3GhWpOafQia4zqbILI6Ppc
W3M+ZKnvYI7Kt5XUpr0oUoHHmvXv0SJUxIenWa5jW1DEnJyM8+1OoBXtDovcO85fmUCu
XGFemAPLJUNgwxj4f4yYx87JABCuY/9Itrn98qZ0BnZDcjShOqIQ4KxQQjjrrx+opFu6
G7UX3BPsCLEFtm+e+iSIhMnNaAG6w4zsGxtRYU0Qb+pb7pVtTr83LwUBenOnJqTjxwoM
OGFEcn1/ghJWXiY8Sm4tT/OeYSId9pMsjkawYa/sDR4RMUMVfawkosnQuUvb8psvbJuk
k08A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793902011; x=1794506811;
h=in-reply-to:content-disposition:content-type:mime-version
:references:message-id:subject:cc:to:from:date:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=T8sEprQNW8eBuCYiQUa50NXEGaOL6nJICBmmSxlYWyw=;
b=a7NcQ2SLm+rf5G85TxzQ4e5Jmt6oMHpnUyJiWdf6QXE60AuHwdCojPZ4W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Zpqg24PgSp6z75vUl5
X-Received: by 2002:a05:6820:2383:b0:6ff:3c22:3053 with SMTP id 006d021491bc7-716e78daa62mr235762eaf.51.1793902011405;
Thu, 05 Nov 2026 10:06:51 -0800 (PST)
X-Received: from localhost ([136.51.44.64])
by smtp.gmail.com with ESMTPSA id 586e51a60fabf-4acea680d38sm5409931fac.15.2026.11.05.10.06.50
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 05 Nov 2026 10:06:50 -0800 (PST)
X-Cc: git@vger.kernel.org
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-In-Reply-To: <auyhIvMHLomMQrPm@pks.im>