maybe a bug
- Dominant language
- C++
- Stars
- 32.1k
- Forks
- 6.9k
- Avg merge
- 32m
- Merged PRs (30d)
- 1
Description
> Note: Please use Issues only for bug reports. For questions, discussions, feature requests, etc. post to dev group: https://www.facebook.com/groups/rocksdb.dev
### Expected behavior
when the write leader is blocked on the write stop, the thead will wait for the BG job to send bg_cv_ Signal after the BG job finished.
### Actual behavior
the write will be stopped for ever, no BG job will send the siganl. because when the writer enter to stop,there is no BG job is doing.
### Steps to reproduce the behavior
thread BG job is doing
thread writer check write_controller_.IsStopped ==true
thread BG job is finished
thread writer enter to wait signal


#0 0x00007f8475bd26d5 in pthread_cond_wait@@GLIBC_2.3.2 () from /var/chroot/mongodb/lib64/libpthread.so.0
#1 0x00007f8477a7481d in rocksdb::port::CondVar::Wait() () from /var/chroot/mongodb/lib64/librocksdb.so.5.1
#2 0x00007f8477af4cd8 in rocksdb::InstrumentedCondVar::Wait() () from /var/chroot/mongodb/lib64/librocksdb.so.5.1
#3 0x00007f84779a9b80 in rocksdb::DBImpl::DelayWrite(unsigned long, rocksdb::WriteOptions const&) () from /var/chroot/mongodb/lib64/librocksdb.so.5.1
#4 0x00007f84779d2207 in rocksdb::DBImpl::WriteImpl(rocksdb::WriteOptions const&, rocksdb::WriteBatch*, rocksdb::WriteCallback*, unsigned long*, unsigned long, bool) () from /var/chroot/mongodb/lib64/librocksdb.so.5.1
#5 0x00007f84779d285b in rocksdb::DBImpl::Write(rocksdb::WriteOptions const&, rocksdb::WriteBatch*) () from /var/chroot/mongodb/lib64/librocksdb.so.5.1
#6 0x00007f84779d2986 in rocksdb::DB::Put(rocksdb::WriteOptions const&, rocksdb::ColumnFamilyHandle*, rocksdb::Slice const&, rocksdb::Slice const&) () from /var/chroot/mongodb/lib64/librocksdb.so.5.1
#7 0x00007f84779d2a35 in rocksdb::DBImpl::Put(rocksdb::WriteOptions const&, rocksdb::ColumnFamilyHandle*, rocksdb::Slice const&, rocksdb::Slice const&) () from /var/chroot/mongodb/lib64/librocksdb.so.5.1
#8 0x000055fcc400bd59 in rocksdb::DB::Put(rocksdb::WriteOptions const&, rocksdb::Slice const&, rocksdb::Slice const&) ()
Contributor guide
Assessment
This issue has not been assessed yet.