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.

Reply via email to