-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: WARN server/server.go:59 key not found #43
Comments
i don't known how to reproduce this issue yet. I also found this problem by accident. |
the log is here:
|
Any other ideas? |
Err, we need a way to reproduce it so that we can locate it. Can you find a way to reproduce it? |
lrucache should be set local events_list
local lrucache = core.lrucache.new({
type = "plugin",
ttl = helper.get_conf_token_cache_time(),
}) local function new_lru_fun(opts)
...
local item_release = opts and opts.release
local invalid_stale = opts and opts.invalid_stale -- false
local serial_creating = opts and opts.serial_creating
local lru_obj = lru_new(item_count)
return function (key, version, create_obj_fun, ...)
if not serial_creating or not can_yield_phases[get_phase()] then
local cache_obj = fetch_valid_cache(lru_obj, invalid_stale,
item_ttl, item_release, key, version)
if cache_obj then
return cache_obj.val
end
..... local function fetch_valid_cache(lru_obj, invalid_stale, item_ttl,
item_release, key, version)
local obj, stale_obj = lru_obj:get(key)
if obj and obj.ver == version then
return obj
end
-- get an expired key in lrucachd that could not find in go runner
if not invalid_stale and stale_obj and stale_obj.ver == version then
lru_obj:set(key, stale_obj, item_ttl)
return stale_obj
end
if item_release and obj then
item_release(obj.val)
end
return nil
end |
@zdzh |
Fixed by apache/apisix#5309 |
apache/apisix#5782 |
@envestcc
Could you log down the token & conf with the given patch?
For apisix:
And how to reproduce this issue?
The text was updated successfully, but these errors were encountered: