From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 064B71F9F3 for ; Wed, 13 Oct 2021 07:00:39 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/5] extindex: show OID on bad blob failure Date: Wed, 13 Oct 2021 07:00:34 +0000 Message-Id: <20211013070038.6414-2-e@80x24.org> In-Reply-To: <20211013070038.6414-1-e@80x24.org> References: <20211013070038.6414-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: AFAIK I've never hit these messages, but I might be glad if I ever do. --- lib/PublicInbox/ExtSearchIdx.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/PublicInbox/ExtSearchIdx.pm b/lib/PublicInbox/ExtSearchIdx.pm index 40489eab4c66..ddb16241e23d 100644 --- a/lib/PublicInbox/ExtSearchIdx.pm +++ b/lib/PublicInbox/ExtSearchIdx.pm @@ -595,11 +595,11 @@ sub _reindex_oid { # git->cat_async callback my $oidbin = pack('H*', $expect_oid); my $remain = _unref_doc($sync, $docid, undef, undef, $oidbin); if ($remain == 0) { - warn "W: #$docid gone or corrupted\n"; + warn "W: #$docid ($oid) gone or corrupt\n"; } elsif (my $next_oid = $req->{xr3r}->[++$req->{ix}]->[2]) { $self->git->cat_async($next_oid, \&_reindex_oid, $req); } else { - warn "BUG: #$docid gone (UNEXPECTED)\n"; + warn "BUG: #$docid ($oid) gone (UNEXPECTED)\n"; } return; }