Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
025f1a61
Commit
025f1a61
authored
Mar 11, 2024
by
AlveElde
Committed by
Dridi Boukelmoune
Mar 15, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fetch: Log bgfetch_no_thread event
parent
2a84483f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
cache_fetch.c
bin/varnishd/cache/cache_fetch.c
+2
-0
c00120.vtc
bin/varnishtest/tests/c00120.vtc
+6
-0
No files found.
bin/varnishd/cache/cache_fetch.c
View file @
025f1a61
...
...
@@ -1222,6 +1222,8 @@ VBF_Fetch(struct worker *wrk, struct req *req, struct objcore *oc,
if
(
Pool_Task
(
wrk
->
pool
,
bo
->
fetch_task
,
prio
))
{
wrk
->
stats
->
bgfetch_no_thread
++
;
VSLb
(
bo
->
vsl
,
SLT_FetchError
,
"No thread available for bgfetch"
);
(
void
)
vbf_stp_fail
(
req
->
wrk
,
bo
);
if
(
bo
->
stale_oc
!=
NULL
)
(
void
)
HSH_DerefObjCore
(
wrk
,
&
bo
->
stale_oc
,
0
);
...
...
bin/varnishtest/tests/c00120.vtc
View file @
025f1a61
...
...
@@ -15,6 +15,10 @@ varnish v1 -vcl+backend {
}
} -start
logexpect l1 -v v1 {
expect * * FetchError "No thread available for bgfetch"
} -start
client c1 {
txreq
rxresp
...
...
@@ -29,4 +33,6 @@ client c1 {
expect resp.status == 200
} -start
logexpect l1 -wait
varnish v1 -expect MAIN.bgfetch_no_thread == 1
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment