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
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