tikv / rocksdb

A library that provides an embeddable, persistent key-value store for fast storage.
http://rocksdb.org
GNU General Public License v2.0
120 stars 93 forks source link

DBTest::GroupCommitTest can not pass #398

Open happy-v587 opened 1 week ago

happy-v587 commented 1 week ago

I found that when running with the kMultiBatchWrite parameter, an assertion fails.

Expected behavior

assert ok

Actual behavior

assert fail image

Steps to reproduce the behavior

./db_test --gtest_filter=DBTest.GroupCommitTest

Connor1996 commented 1 week ago

PTAL @v01dstar

v01dstar commented 1 week ago

https://github.com/tikv/rocksdb/blob/8.10.tikv/db/db_test.cc#L2983 This seems to be the line reported the panic in 8.10.tikv branch. However, in your screenshot, it shows line 2816. Is this expected?

I can't reproduce the error on my laptop. Would you please share the whole cmds you run that can trigger db_test panic? e.g. the build cmd?

happy-v587 commented 1 week ago

@v01dstar I'm sorry, my local code is not up-to-date. After I update it, the error message is as follows:

image

v01dstar commented 1 week ago

I can't reproduce it. Could you please share your setup? Are you running this in a container. How many cores you are running with? If you are running with only one core, I guess it is expected for it to fail.