You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] memory usage returns wrong value for json objects #559
redis-cli json.set foo . '"bar far war jar gar asdf sdf sdf sfd asdf asdf sfd dzf z fsd fasdf zdf zsd fzsd fzs df zsdf"'
redis-cli memory usage foo
Note that no matter how long you make the string in quotes, memory usage always returns 32 bytes.
I'm running redis version 6.2.3 using module RedisJSON 2.0.4 on Redis enterprise with Redis labs.
This bug just appeared in production in the last 48 hours.
Note that "json.debug memory" appears to always return 72 when provided with any key, regardless of contents. So this affects both "memory usage" and "json.debug memory". There is no way to measure the memory usage of a json key accurately anymore.
Activity
papakipos commentedon Dec 1, 2021
Note that "json.debug memory" appears to always return 72 when provided with any key, regardless of contents. So this affects both "memory usage" and "json.debug memory". There is no way to measure the memory usage of a json key accurately anymore.
Handle "MEMORY USAGE" and JSON.DEBUG (#594)