Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

close rocksdb by kill -9,and rocksdb can not start again!! #847

Closed
followheart opened this issue Nov 20, 2015 · 5 comments
Closed

close rocksdb by kill -9,and rocksdb can not start again!! #847

followheart opened this issue Nov 20, 2015 · 5 comments

Comments

@followheart
Copy link

in my case,if turn options_.rate_limiter on, when close rocksdb by kill -9,rocksdb can not start again,it is hanged~~~
gdb attach the process, find the stack like that:
#0 0x00007f9b785d1a0e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1 0x0000000000586412 in rocksdb::port::CondVar::TimedWait (this=Unhandled dwarf expression opcode 0xf3

) at port/port_posix.cc:100
#2 0x0000000000501dc3 in rocksdb::GenericRateLimiter::Request (this=0x18fff70, bytes=Unhandled dwarf expression opcode 0xf3

) at util/rate_limiter.cc:107
#3 0x00000000004e7953 in rocksdb::WritableFileWriter::RequestToken (this=0x190d7d0, bytes=16343) at util/file_reader_writer.cc:223
#4 0x00000000004e7a47 in rocksdb::WritableFileWriter::Flush (this=0x190d7d0) at util/file_reader_writer.cc:120
#5 0x0000000000588849 in rocksdb::BlockBasedTableBuilder::Flush (this=Unhandled dwarf expression opcode 0xf3

) at table/block_based_table_builder.cc:594
#6 0x0000000000588a00 in rocksdb::BlockBasedTableBuilder::Add (this=0x190d9f0, key=..., value=...) at table/block_based_table_builder.cc:556
#7 0x000000000059810f in rocksdb::BuildTable (dbname=Unhandled dwarf expression opcode 0xf3

) at db/builder.cc:100
#8 0x0000000000531515 in rocksdb::DBImpl::WriteLevel0TableForRecovery (this=0x1903230, job_id=1, cfd=0x1909030, mem=Unhandled dwarf expression opcode 0xf3

) at db/db_impl.cc:1305
#9 0x0000000000532dc0 in rocksdb::DBImpl::RecoverLogFiles (this=Unhandled dwarf expression opcode 0xf3

) at db/db_impl.cc:1179
#10 0x00000000005339e6 in rocksdb::DBImpl::Recover (this=0x1903230, column_families=Unhandled dwarf expression opcode 0xf3

) at db/db_impl.cc:993
#11 0x0000000000534a2e in rocksdb::DB::Open (db_options=..., dbname="/home/wangfaqiang/testdb",

column_families=std::vector of length 1, capacity 1 = {...}, handles=0x7ffcd956b110, dbptr=0x7ffcd956afd8) at db/db_impl.cc:4402

#12 0x00000000004eb5d5 in rocksdb::DBWithTTL::Open (db_options=..., dbname="/home/wangfaqiang/testdb", column_families=Unhandled dwarf expression opcode 0xf3

i have to clear all files which in db dir to start rocksdb~~~
is there anyway i can solve this problem?

@followheart
Copy link
Author

@siying hello,this case can recurrent very easily,just turn on options_.rate_limiter ?
anybody can explan this problem?

thanks~`

@siying
Copy link
Contributor

siying commented Nov 30, 2015

@followheart if you turn off rate limiter, can you start the DB?

@followheart
Copy link
Author

@siying yes,if turn off rate limiter,it is okay~~
the reason maybe is when turn on rame limiter,write thrad write some data and sleep,then it is killed~~

@yuslepukhin
Copy link
Contributor

This is a timed wait so it should awake. This tread is not very interesting but others may be.

@gfosco
Copy link
Contributor

gfosco commented Jan 10, 2018

Closing this via automation due to lack of activity. If discussion is still needed here, please re-open or create a new/updated issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants