From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 6B3781F87C for ; Mon, 13 Nov 2023 13:15:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1699881355; bh=G6OPdxe9cCGzFmvVfw9JhLHlmI60ziAI9GylYUnDBsE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=isc3woVufBU4CCIbxPNpVtxOITtk39W9qY79IrPjmYL5oinsX4FQGgAh9E0C/69q5 48YbGOsXwFDORGrwN6UFcppljnoCI/qALqg4kitd9H9na/UKvvL38/PGDXrKIKplr5 FBZO9OQnsyMU6DaBxtptX616i9l8mRyl+jdbfGE4= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 13/18] cidx_xap_helper_aux: complain about truncated inputs Date: Mon, 13 Nov 2023 13:15:46 +0000 Message-Id: <20231113131551.843230-14-e@80x24.org> In-Reply-To: <20231113131551.843230-1-e@80x24.org> References: <20231113131551.843230-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This will help us notice bugs and system resource limitations sooner rather than later. --- lib/PublicInbox/CidxXapHelperAux.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/PublicInbox/CidxXapHelperAux.pm b/lib/PublicInbox/CidxXapHelperAux.pm index f402bde0..91c9b021 100644 --- a/lib/PublicInbox/CidxXapHelperAux.pm +++ b/lib/PublicInbox/CidxXapHelperAux.pm @@ -26,7 +26,11 @@ sub event_step { } my $pfx = $self->{pfx}; if ($n == 0) { - $self->{cidx}->progress("$pfx $buf") if $buf ne ''; + warn "BUG? $pfx buf=$buf" if $buf ne ''; + if (delete $self->{cidx}->{PENDING}->{$pfx}) { + warn "BUG? $pfx did not get mset.size"; + $self->{cidx}->index_next; + } return $self->close; } my @lines = split(/^/m, $buf);