-
Notifications
You must be signed in to change notification settings - Fork 56
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
Null pointer issue with mlcache lru #629
Comments
@DuzzlinAdmin when do you encounter this error? Always, or specific to your custom plugin, etc. @chobits this was part of the dns refactor I think. Can you have a look at this issue? |
@Tieske Replying via main account, encountered it during few plugin execution, |
I checked the logs, Happens when worker calls the poll function which calls to cluster_events process event where callbacks are set and then when callbacks are executed in the below part it gives the error
|
The issue here is that those files are not owned by Pongo. They are part of the Kong repo's, and only copied into Pongo on a release-tag basis. So any fix should be in the Kong repos. |
Context : Changes added to Kong-Pongo for version 3.8.0.0 added a few lines in spec/helpers.lua line 323 which are highlighted below
_G.kong.cache.mlcache.lru = nil collectgarbage()
When mlcache.lru is set to nil we have this issue of cluster_events callback failing
[error] 1342#0: *18 [lua] init.lua:270: process_event(): [cluster_events] callback threw an error: /usr/local/share/lua/5.1/kong/resty/mlcache/init.lua:1420: attempt to index field 'lru' (a nil value), context: ngx.timer
Can you please provide reasons on why the above lines were added to helpers.lua and what can be the resolution to this as callbacks are being executed after the function call clear_cache_on_file_end
The text was updated successfully, but these errors were encountered: