From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id E99233858D28 for ; Fri, 8 Apr 2022 21:34:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E99233858D28 Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-103-JSz5d8NJMTm9g39TG2SG6w-1; Fri, 08 Apr 2022 17:34:17 -0400 X-MC-Unique: JSz5d8NJMTm9g39TG2SG6w-1 Received: by mail-qk1-f199.google.com with SMTP id bi19-20020a05620a319300b00699e9a10ab2so4402233qkb.21 for ; Fri, 08 Apr 2022 14:34:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Rk8mIxNMY9C2OP69HyCln+zhW/Jh0S4HiR2KHgKsDpI=; b=AkHWVmmvbe4c4lu/DFRgp/eIUhJqasQTUanrorNZnlgtBzW6U3sB8wXtkBM8fbmiYd IlJ9rsZ/pAAIBopftBNoGpWqDlhINkmODEx4Qb6+ZcIvqocd3IDeqf5LiecPOHhbTfvo hr1SGhwJxtKLA72ECi1FX2DkIykAFd/S+FK71qXNFSJmhaEcWRDpnQSTnfQ/Q0mtxTdD wDCS1TFWbjSsiP8GmIGHxwpu+p3ujugmEa8m306c42DNRU6N0kCurml766pkaVOE1u+3 V9K0gLM16RkKdXoLqboiYH7I89G5LBiIP1wxa1gzyqK6TIK5nS3rVyJ6chfqnTTEHutl G6Aw== X-Gm-Message-State: AOAM530H/+j1gO8T+N2V4HmuwBzgml7HruhyzRWQry7IPDi5pUUG3RKY ZKaGxZh77+MFZJuwfvZlgR8RySDPJyo9RDe9/+HC/NwM2IGJ/wULfoTz4iSfvpVtsBye8wDROzP Nd1eTVx9AQGeNxj7hCzPg2Q+PzH6YtH4Bjwnn/fVN X-Received: by 2002:ad4:5f0f:0:b0:441:1e3a:dbc with SMTP id fo15-20020ad45f0f000000b004411e3a0dbcmr17596387qvb.99.1649453656974; Fri, 08 Apr 2022 14:34:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzj7CfKRo0wC4C7+wlMYWJsntm1IMG3JkVcZv2t0K/0NP1kzOvik/SlTFf4l2DO5oJ1olNzugh0YV+sjS71bnA= X-Received: by 2002:ad4:5f0f:0:b0:441:1e3a:dbc with SMTP id fo15-20020ad45f0f000000b004411e3a0dbcmr17596375qvb.99.1649453656782; Fri, 08 Apr 2022 14:34:16 -0700 (PDT) MIME-Version: 1.0 References: <4448277.fIUe8AKecr@milian-workstation> <2854938.4GpPBkblLQ@milian-workstation> <19455068.ZVunK98tCv@milian-workstation> In-Reply-To: <19455068.ZVunK98tCv@milian-workstation> From: Aaron Merey Date: Fri, 8 Apr 2022 17:34:06 -0400 Message-ID: Subject: Re: caching failed lookups of debuginfo? To: Milian Wolff Cc: Mark Wielaard , elfutils-devel@sourceware.org X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_LOTSOFHASH, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2022 21:34:20 -0000 Hi Milian, On Fri, Apr 8, 2022 at 5:08 PM Milian Wolff wrote: > I can reproduce it now suddenly with debuginfod-find too: > > ``` > $ > debuginfod-find debuginfo 85766e9d8458b16e9c7ce6e07c712c02b8471dbc > debuginfod_find_debuginfo 85766e9d8458b16e9c7ce6e07c712c02b8471dbc > server urls "https://debuginfod.archlinux.org/" > checking build-id > checking cache dir /home/milian/.cache/debuginfod_client > using timeout 90 > init server 0 https://debuginfod.archlinux.org/buildid > url 0 https://debuginfod.archlinux.org/buildid/ > 85766e9d8458b16e9c7ce6e07c712c02b8471dbc/debuginfo > query 1 urls in parallel > server response HTTP response code said error > url 0 The requested URL returned error: 404 > not found No such file or directory (err=-2) > Server query failed: No such file or directory > ``` > > I do see an empty `/home/milian/.cache/debuginfod_client/ > 85766e9d8458b16e9c7ce6e07c712c02b8471dbc/debuginfo` file. But the server is > still queried (i.e. rerunning the above command always produces the same > output for me). The lookup is costly too at ~70ms overall: I am not able to reproduce this on Fedora 35 using commit 8db849976f070. The first time I run debuginfod-find I get similar output to you: ``` debuginfod_find_debuginfo 85766e9d8458b16e9c7ce6e07c712c02b8471dbc server urls "https://debuginfod.archlinux.org/" checking build-id checking cache dir /home/amerey/.cache/debuginfod_client using timeout 90 init server 0 https://debuginfod.archlinux.org/buildid url 0 https://debuginfod.archlinux.org/buildid/85766e9d8458b16e9c7ce6e07c712c02b8471dbc/debuginfo query 1 urls in parallel server response HTTP response code said error url 0 The requested URL returned error: 404 not found No such file or directory (err=-2) Server query failed: No such file or directory ``` But when I rerun debuginfod-find I get output indicating that the cache was checked: ``` debuginfod_find_debuginfo 85766e9d8458b16e9c7ce6e07c712c02b8471dbc server urls "https://debuginfod.archlinux.org/" checking build-id checking cache dir /home/amerey/.cache/debuginfod_client not found No such file or directory (err=-2) Server query failed: No such file or directory ``` No calls to curl_multi_wait occur. Is there a "cache_miss_s" file in the top level of your debuginfod cache? It should contain the number of seconds that must elapse after a failed attempt before another query would be attempted (default is 600 seconds). Aaron