summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorAlice Zhang via Elfutils-devel <elfutils-devel@sourceware.org>2021-05-04 16:25:59 -0400
committerMark Wielaard <mark@klomp.org>2021-05-06 23:04:26 +0200
commit5f72c51a7e5c02be833d78c8412a8083f2212dcf (patch)
treec13b732cbacfe17a9303b787b2ef6ec149b06d7c /NEWS
parent92980edc829c816fabd00df8694acd0a4976902f (diff)
downloadelfutils-5f72c51a7e5c02be833d78c8412a8083f2212dcf.tar.gz
debuginfod: debuginfod client should cache negative results.
Add debuginfod_config_cache for reading and writing to cache configuration files, make use of the function within debuginfod_clean_cache and debuginfod_query_server. In debuginfod_query_server, create 000-permission file on failed queries. Before querying each BUILDID, if corresponding 000 file detected, compare its stat mtime with parameter from .cache/cache_miss_s. If mtime is fresher, then return ENOENT and exit; otherwise unlink the 000 file and proceed to a new query. tests: add test in run-debuginfod-find.sh test if the 000 file is created on failed query; if querying the same failed BUILDID, whether the query should proceed without going through server; set the cache_miss_s to 0 and query the same buildid, and this time should go through the server. Signed-off-by: Alice Zhang <alizhang@redhat.com>
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 038c6019..f25ae3d0 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,11 @@ Version 0.184
debuginfod: Use libarchive's bsdtar as the .deb-family file unpacker.
+debuginfod-client: Client caches negative results. If a query for a
+ file failed with 404, an empty 000 permission
+ file is created in the cache. This will prevent
+ requesting the same file for the next 10 minutes.
+
Version 0.183
debuginfod: New thread-busy metric and more detailed error metrics.