Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

MEMORY USAGE for STREAM keys always return (integer) 0 #4028

Open
trisua opened this issue Oct 31, 2024 · 1 comment · May be fixed by #4067
Open

MEMORY USAGE for STREAM keys always return (integer) 0 #4028

trisua opened this issue Oct 31, 2024 · 1 comment · May be fixed by #4067
Labels
bug Something isn't working

Comments

@trisua
Copy link

trisua commented Oct 31, 2024

Describe the bug
MEMORY USAGE for STREAM keys always return (integer) 0

To Reproduce
Steps to reproduce:

  1. Create stream using XADD test-stream * just test
  2. Query stream size MEMORY USAGE test-stream
  3. Result (integer) 0

Expected behavior

  1. Create stream using XADD test-stream * just test
  2. Query stream size MEMORY USAGE test-stream
  3. Result (integer) 4736 (example from redis_version:7.2.6)

Environment (please complete the following information):

  • OS: Ubuntu 24.04
  • Kernel: Linux 6.8.0-47-generic #47-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 27 22:03:50 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
  • Containerized?: Docker version 27.3.1, build ce12230 image: 'docker.dragonflydb.io/dragonflydb/dragonfly:v1.24.0'
  • Dragonfly Version: v1.24.0
@trisua trisua added the bug Something isn't working label Oct 31, 2024
@kostasrim
Copy link
Contributor

Hi @trisua, you are right this is a bug and thank you for reporting.

See:

  size_t MallocUsedStream(unsigned encoding, void* streamv) {
    // stream* str_obj = (stream*)streamv;
    return 0;  // TODO
  }

@kostasrim kostasrim linked a pull request Nov 5, 2024 that will close this issue
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants