Closed attack204 closed 1 year ago
@attack204 : thanks for reporting! I've run across this issue as well . The assertion is wrong.
We must hold the write lock, so we should check for that in stead.
You can fix this by just changing:
assert(!IsOpenForWR() && new_list.size() > 0); to assert(IsOpenForWR() && new_list.size() > 0);
I have a bunch of small GC fixes queued up that i'll push for review later this week.
Thank you!
Firstly I cloned the RocksDB from the official repo and garbage_collection branch from here
I just modified the "GC_START_LEVEL" from the default 20 to 70. But when I use the following script to test, an error happens.
The Error is
My test script
And I use null_blk as a simulator, the script is
with the nullblk-zoned.sh