Skip to content

Null pointer issue with mlcache lru #629

Description

@DuzzlinAdmin

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions