tarantool / tarantool/tarantool
:stat() for index return empty array
Open
Nobody has claimed this yet.
bug
needs feedback
srv.info
- Dominant language
- Lua
- Stars
- 3.7k
- Forks
- 419
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 88
Description
:stat() for index return empty array
- OS: CentOS Linux release 7.9.2009 (Core)
Tarantool 2.7.3-0-gdddf926
Target: Linux-x86_64-RelWithDebInfo
Build options: cmake . -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_BACKTRACE=ON
Compiler: /opt/rh/devtoolset-8/root/usr/bin/cc /opt/rh/devtoolset-8/root/usr/bin/c++
C_FLAGS:-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fexceptions -funwind-tables -fno-omit-frame-pointer -fno-stack-protector -fno-common -fopenmp -msse2 -std=c11 -Wall -Wextra -Wno-strict-aliasing -Wno-char-subscripts -Wno-format-truncation -Wno-gnu-alignof-expression -fno-gnu89-inline -Wno-cast-function-type -Werror
CXX_FLAGS:-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fexceptions -funwind-tables -fno-omit-frame-pointer -fno-stack-protector -fno-common -fopenmp -msse2 -std=c++11 -Wall -Wextra -Wno-strict-aliasing -Wno-char-subscripts -Wno-format-truncation -Wno-invalid-offsetof -Wno-gnu-alignof-expression -Wno-cast-function-type -Werror
At working instance wich used at api space with index call stat for this index.
localhost:3301> box.space.FreeMsisdns.index.FreeMsisdns_pht_id_branch_id_switch_id_phs_id_ttl_idx:len()
---
- 12037761
...
localhost:3301> box.space.FreeMsisdns.index.
box.space.FreeMsisdns.index.FreeMsisdns_message_id_idx box.space.FreeMsisdns.index.FreeMsisdns_pht_id_branch_id_switch_id_phs_id_ttl_idx
box.space.FreeMsisdns.index.FreeMsisdns_msisdn_idx box.space.FreeMsisdns.index.FreeMsisdns_select_idx
box.space.FreeMsisdns.index.FreeMsisdns_phone_id_branch_id_idx box.space.FreeMsisdns.index.ttl
box.space.FreeMsisdns.index.FreeMsisdns_phs_id_idx
localhost:3301> box.space.FreeMsisdns.index.FreeMsisdns_message_id_idx:stat()
---
- []
...
localhost:3301> box.space.FreeMsisdns.index.FreeMsisdns_msisdn_idx:stat()
---
- []
...
localhost:3301> box.space.FreeMsisdns.index.FreeMsisdns_phone_id_branch_id_idx:stat()
---
- []
...
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported behavior at the box.space.FreeMsisdns.index.*:stat() entry points on the described Tarantool setup, comparing the empty statistics with the index's reported len(). Determine why populated indexes return empty arrays, then verify that stat() reports the expected data for the affected indexes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100