You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The responsibility for loading/starting the bitcask application should lie with the application which is using bitcask.
The current implementation can cause problems for applications, such as Riak, that open casks without blocking the main application's start up. For example, in Riak, the call to application:start(bitcask) within a vnode can deadlock with init:stop(). When processing init:stop() the application controller will wait for vnodes to shutdown. If the vnodes are still starting when init:stop() is called they will block on the call to application:start(bitcask). The deadlock eventually times out, after 5 minutes, and the application controller can complete the shutdown of Riak.
Steps to reproduce:
Run riak start; riak stop
Repeat step 1 until riak stop hangs for about 5 minutes
The text was updated successfully, but these errors were encountered:
Bitcask calls
application:start(bitcask)
every timebitcask:open/1,2
is called:https://github.com/basho/bitcask/blob/master/src/bitcask.erl#L92
https://github.com/basho/bitcask/blob/master/src/bitcask.erl#L714
The responsibility for loading/starting the bitcask application should lie with the application which is using bitcask.
The current implementation can cause problems for applications, such as Riak, that open casks without blocking the main application's start up. For example, in Riak, the call to
application:start(bitcask)
within a vnode can deadlock withinit:stop()
. When processinginit:stop()
the application controller will wait for vnodes to shutdown. If the vnodes are still starting wheninit:stop()
is called they will block on the call toapplication:start(bitcask)
. The deadlock eventually times out, after 5 minutes, and the application controller can complete the shutdown of Riak.Steps to reproduce:
riak start; riak stop
riak stop
hangs for about 5 minutesThe text was updated successfully, but these errors were encountered: