public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [Bug debuginfod/30221] New: Negative cache should differentiate failure types
@ 2023-03-11  1:32 vi at endrift dot com
  2023-03-13 16:40 ` [Bug debuginfod/30221] " fche at redhat dot com
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: vi at endrift dot com @ 2023-03-11  1:32 UTC (permalink / raw)
  To: elfutils-devel

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

            Bug ID: 30221
           Summary: Negative cache should differentiate failure types
           Product: elfutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: debuginfod
          Assignee: unassigned at sourceware dot org
          Reporter: vi at endrift dot com
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

Having a negative cache is essential for performant lookups with debuginfod,
but it doesn't differentiate between different types of failure, e.g. transient
(timeout, interrupted, etc) and non-transient (server responded 404 or 410). A
404 error is unlikely to be resolved in as short a timespan as a transient
error, and some servers don't have great debug info coverage, not to mention
local builds. It's very annoying to have to hit tons of builds only to get a
404 so frequently, so it'd be a good idea to have different cache timeouts for
different failure types.

I looked into how the negative cache works, and it looks like it's just the
presence of a 0 byte file. Unfortunately, this means there's no metadata
associated at all, and I'm not sure how tacking on metadata should work in the
first place. xattrs perhaps?

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

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

end of thread, other threads:[~2023-04-21  2:04 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-11  1:32 [Bug debuginfod/30221] New: Negative cache should differentiate failure types vi at endrift dot com
2023-03-13 16:40 ` [Bug debuginfod/30221] " fche at redhat dot com
2023-03-14  1:47 ` vi at endrift dot com
2023-03-17  1:00 ` vi at endrift dot com
2023-03-17  1:08 ` fche at redhat dot com
2023-03-17  1:16 ` vi at endrift dot com
2023-03-17  1:20 ` fche at redhat dot com
2023-03-17  1:28 ` vi at endrift dot com
2023-03-17  1:30 ` vi at endrift dot com
2023-03-17 16:16 ` amerey at redhat dot com
2023-03-17 16:53 ` amerey at redhat dot com
2023-03-17 23:39 ` vi at endrift dot com
2023-03-24 11:22 ` fche at redhat dot com
2023-04-08 13:29 ` mark at klomp dot org
2023-04-21  2:04 ` 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).