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-Status: No, score=-3.4 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from out1.migadu.com (out1.migadu.com [91.121.223.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id B6E0E1F9FD for ; Mon, 22 Feb 2021 05:37:44 +0000 (UTC) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1613972262; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=1CuOV4GWY8mGkglf8YwKMoDeavO4K6It7rdkziFoQFk=; b=au2BbM8XFSTNkU6b4+1iPVMIlpmYl/Y5oyOyBWdnOzGMpoSdC8r2qXr7dBZboIj236xO2j rGbmeVChrxszO7lFzgXIHsTeXrWQYPwdjk22m8y5SqkeMTdmpxVqfVQQHQMzzQCseGoUcQ QiD7J/PdjxTLhwCQ1+OnaD3W0pbdk1rtG8omQJLr0lr2dw5mOQsPBda81kPGEDmvqLfjl2 1+jJn1LAEWC06wgAdELmgHG4QzDN9ASEWoAlIa21c8ypdgv8ydAmSF3O1AIXNovKoE7yBW FsvLxSCIRRf0F+AzYzzmN/ecISxmyQaCZ9YmONGkphkGODNArzexCubv6HN6aQ== From: Kyle Meyer To: meta@public-inbox.org Subject: lei: accessing blob after import requires daemon restart Date: Mon, 22 Feb 2021 00:37:41 -0500 Message-ID: <8735xou0gq.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: kyle@kyleam.com List-Id: When playing around with lei-import, I was unable to display an mbox for a just-imported message: # starting in an uninitialized state with no externals $ curl -d'' -fsS 'https://public-inbox.org/meta/?q=cgit+blob+solver&x=m' \ | zcat >t.mbox $ lei import mboxrd:t.mbox $ lei q -f ldjson s:remove {"blob":"089cdf1af1d738068494a653532ed01b1844407d","docid":11,...} $ lei q -f mboxrd s:remove missing 089cdf1af1d738068494a653532ed01b1844407d It's in the local repo though: $ git -C ~/.local/share/lei/store/local/0.git \ rev-parse --verify 089cdf1af1d738068494a653532ed01b1844407d^{blob} 089cdf1af1d738068494a653532ed01b1844407d Killing the daemon and trying again resolves the issue: $ lei daemon-kill $ lei q -f mboxrd s:remove | head -1 From 089cdf1af1d738068494a653532ed01b1844407d=99@mboxrd Thu Jan 1 00:00:00 1970 Sorry if I'm reporting a known to-do; with a quick search, I didn't spot anything on the list or in the code, and it feels like enough of a corner case to be worth mentioning.