bug: Lru Cache Problem in traffic-split #5371
Unanswered
Marco-Zheng
asked this question in
Q&A
Replies: 3 comments 1 reply
-
It seems that the memory is not shared between different processes caused, if apisix has something memory shared cache utils(like lua_shared_dict) |
Beta Was this translation helpful? Give feedback.
1 reply
-
seems using lua_shared_dict can resolve this problem |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm turning this issue into a discussion because it's not the code for the project. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Issue description
When i set cache in _M.init() by using timer , it was successfuly, but get nil in _M.access() function, see details as below Steps
Environment
apisix version
): 2.6Steps to reproduce
Here is my extension code to timely fetch some data from etcd in traffic-split plugin
Then i add below code in _M.acccess() function in order to get the data from cache
But the weird thing is that my cache settings are successful , when I fetch data from cache, it was nil
My
lua_code_cache
isopen
Actual result
cache get is nil
Error log
No error log
Expected result
get the cache what i set in
Beta Was this translation helpful? Give feedback.
All reactions