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

Set Index hashtree sync_stop timeout to infinity #1803

Merged
merged 1 commit into from
Nov 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/riak_kv_index_hashtree.erl
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@
%% Magic Tree id for 2i data.
-define(INDEX_2I_N, {0, 0}).

% gen_server call timeout for sync stop
-define(SYNC_STOP_TIMEOUT, 60000).

%% Throttle used when folding over K/V data to build AAE trees: {Limit, Wait}.
%% After traversing Limit bytes, the fold will sleep for Wait milliseconds.
%% Default: 1 MB limit / 100 ms wait
Expand Down Expand Up @@ -244,7 +247,7 @@ stop(Tree) ->
sync_stop(undefined) ->
ok;
sync_stop(Tree) ->
gen_server:call(Tree, stop).
gen_server:call(Tree, stop, ?SYNC_STOP_TIMEOUT).

%% @doc Destroy the specified index_hashtree, which will destroy all
%% associated hashtrees and terminate.
Expand Down