public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [Bug debuginfod/27859] New: reused debuginfod_client objects don't clean out curl handles enough
@ 2021-05-13  1:26 fche at redhat dot com
  2021-05-13  1:27 ` [Bug debuginfod/27859] " fche at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: fche at redhat dot com @ 2021-05-13  1:26 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=27859

            Bug ID: 27859
           Summary: reused debuginfod_client objects don't clean out curl
                    handles enough
           Product: elfutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: debuginfod
          Assignee: fche at redhat dot com
          Reporter: fche at redhat dot com
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

Not long after deploying the new 0.184 release in anger, amerey noticed that it
was possible for a federating debuginfod to report 404's on queries that its
upstream can readily satisfy.  Further digging and testing indicates that this
is not related to the 000 negative caching, but rather some sort of
error-latching effect with the curl handles.

In a sequence of queries on the same debuginfod_client, as long as they are all
successful, things are fine.  Once there is a 404 error however, this appears
to latch, and subsequent requests give 404 whether or not they were resolvable
by upstream.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug debuginfod/27859] reused debuginfod_client objects don't clean out curl handles enough
  2021-05-13  1:26 [Bug debuginfod/27859] New: reused debuginfod_client objects don't clean out curl handles enough fche at redhat dot com
@ 2021-05-13  1:27 ` fche at redhat dot com
  2021-05-14 13:15 ` [Bug debuginfod/27859] New: " Mark Wielaard
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: fche at redhat dot com @ 2021-05-13  1:27 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=27859

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://sourceware.org/bugz
                   |                            |illa/show_bug.cgi?id=27701

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bug debuginfod/27859] New: reused debuginfod_client objects don't clean out curl handles enough
  2021-05-13  1:26 [Bug debuginfod/27859] New: reused debuginfod_client objects don't clean out curl handles enough fche at redhat dot com
  2021-05-13  1:27 ` [Bug debuginfod/27859] " fche at redhat dot com
@ 2021-05-14 13:15 ` Mark Wielaard
  2021-05-14 13:16 ` [Bug debuginfod/27859] " mark at klomp dot org
  2021-05-16 21:51 ` fche at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: Mark Wielaard @ 2021-05-14 13:15 UTC (permalink / raw)
  To: fche at redhat dot com; +Cc: elfutils-devel

On Thu, May 13, 2021 at 01:26:42AM +0000, fche at redhat dot com via Elfutils-devel wrote:
> https://sourceware.org/bugzilla/show_bug.cgi?id=27859
>
> In a sequence of queries on the same debuginfod_client, as long as
> they are all successful, things are fine.  Once there is a 404 error
> however, this appears to latch, and subsequent requests give 404
> whether or not they were resolvable by upstream.

Makes sense that curl remembers 404 results. Does that mean we need to
refresh the curl handle when a request is made for a negative cached
entry and cache_miss_s expires?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug debuginfod/27859] reused debuginfod_client objects don't clean out curl handles enough
  2021-05-13  1:26 [Bug debuginfod/27859] New: reused debuginfod_client objects don't clean out curl handles enough fche at redhat dot com
  2021-05-13  1:27 ` [Bug debuginfod/27859] " fche at redhat dot com
  2021-05-14 13:15 ` [Bug debuginfod/27859] New: " Mark Wielaard
@ 2021-05-14 13:16 ` mark at klomp dot org
  2021-05-16 21:51 ` fche at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: mark at klomp dot org @ 2021-05-14 13:16 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=27859

--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
On Thu, May 13, 2021 at 01:26:42AM +0000, fche at redhat dot com via
Elfutils-devel wrote:
> https://sourceware.org/bugzilla/show_bug.cgi?id=27859
>
> In a sequence of queries on the same debuginfod_client, as long as
> they are all successful, things are fine.  Once there is a 404 error
> however, this appears to latch, and subsequent requests give 404
> whether or not they were resolvable by upstream.

Makes sense that curl remembers 404 results. Does that mean we need to
refresh the curl handle when a request is made for a negative cached
entry and cache_miss_s expires?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug debuginfod/27859] reused debuginfod_client objects don't clean out curl handles enough
  2021-05-13  1:26 [Bug debuginfod/27859] New: reused debuginfod_client objects don't clean out curl handles enough fche at redhat dot com
                   ` (2 preceding siblings ...)
  2021-05-14 13:16 ` [Bug debuginfod/27859] " mark at klomp dot org
@ 2021-05-16 21:51 ` fche at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: fche at redhat dot com @ 2021-05-16 21:51 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=27859

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Frank Ch. Eigler <fche at redhat dot com> ---
commit 0b454c7e1997 fixes this.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-05-16 21:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-13  1:26 [Bug debuginfod/27859] New: reused debuginfod_client objects don't clean out curl handles enough fche at redhat dot com
2021-05-13  1:27 ` [Bug debuginfod/27859] " fche at redhat dot com
2021-05-14 13:15 ` [Bug debuginfod/27859] New: " Mark Wielaard
2021-05-14 13:16 ` [Bug debuginfod/27859] " mark at klomp dot org
2021-05-16 21:51 ` fche at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).