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

Sometimes, a deadlock occurs when manual compaction. #607

Closed
superwood opened this issue May 15, 2015 · 5 comments
Closed

Sometimes, a deadlock occurs when manual compaction. #607

superwood opened this issue May 15, 2015 · 5 comments

Comments

@superwood
Copy link

All the read and write opertion are blocked 。 the process seems deadlock.

There is the thread stack info
#0 0x0000003864a0b5bc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1 0x000000000050468d in rocksdb::port::CondVar::Wait (this=Unhandled dwarf expression opcode 0xf3

) at port/port_posix.cc:83
#2 0x00000000005365d5 in WaitInternal (this=0x7f6aa95e5448) at util/instrumented_mutex.cc:50
#3 rocksdb::InstrumentedCondVar::Wait (this=0x7f6aa95e5448) at util/instrumented_mutex.cc:38
#4 0x0000000000503855 in rocksdb::WriteThread::EnterWriteThread (this=0x11682a8, w=, expiration_time=0) at db/write_thread.cc:22
#5 0x00000000004c74b3 in rocksdb::DBImpl::Write (this=0x1168000, write_options=..., my_batch=0x7f6aa95e5688) at db/db_impl.cc:3044

@igorcanadi
Copy link
Collaborator

Is this the only thread? Can you send the stacks of other threads? Can you send us your LOG file?

@superwood
Copy link
Author

threads have the some stacks . The WARN LOG is
"[default] Stopping writes because we have 4 immutable memtables (waiting for flush), max_write_buffer_number is set to 4"

the rocksdb options about flush and compaction are
Options.max_background_compactions: 8
Options.max_background_flushes: 8

why does rocksdb stop flush immutable memtables to sst ?
how can i slove the problem.

@igorcanadi
Copy link
Collaborator

This has been solved in 3.11 release (b0fdda4 is the commit). Can you please try verifying if this has been solved for you?

@ghost
Copy link

ghost commented Aug 5, 2015

Thank you for reporting this issue and appreciate your patience. We've notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.

@sagar0
Copy link
Contributor

sagar0 commented Oct 3, 2017

@superwood I hope your issue is resolved with b0fdda4 .
I am closing this issue as it is more than an year old. Please feel free to reopen if you think this issue is still relevant and/or has been closed in error.

@sagar0 sagar0 closed this as completed Oct 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants