Many empty memtables are created during MyRocks create index
- Dominant language
- C++
- Stars
- 32.1k
- Forks
- 6.9k
- Avg merge
- 32m
- Merged PRs (30d)
- 1
Description
### Expected behavior
New MemTable should not be created if there are empty memtables.
### Actual behavior
Many new (empty) MemTables are created during MyRocks create index. This is a benign bug, these empty MemTables are deleted on create index finishes.
### Steps to reproduce the behavior
In MyRocks, create many indexes in parallel on existing large table while heavily writing to another table.
It seems these MemTables are created in `IngestExternalFiles` -> `FlushMemTable` -> `SwitchMemtable`.
-----
We found this bug by our webview inspector for DB, gray are empty MemTables:

These empty MemTables get deleted:

Contributor guide
Assessment
This issue has not been assessed yet.