Stop snapshots when the bookie stops
During EQC testing it was found that snapshots are still usable even if the bookie process crashes. This change has snapshots monitor the bookie and close when the bookie process dies.
This commit is contained in:
parent
a1269e5274
commit
ef9ac672e5
4 changed files with 72 additions and 2 deletions
|
@ -53,6 +53,9 @@
|
|||
root_path :: string() | undefined,
|
||||
cdb_options :: #cdb_options{} | undefined,
|
||||
start_snapshot = false :: boolean(),
|
||||
%% so a snapshot can monitor the bookie and
|
||||
%% terminate when it does
|
||||
bookies_pid :: pid() | undefined,
|
||||
source_inker :: pid() | undefined,
|
||||
reload_strategy = [] :: list(),
|
||||
waste_retention_period :: integer() | undefined,
|
||||
|
@ -67,6 +70,9 @@
|
|||
max_inmemory_tablesize :: integer() | undefined,
|
||||
start_snapshot = false :: boolean(),
|
||||
snapshot_query,
|
||||
%% so a snapshot can monitor the bookie and
|
||||
%% terminate when it does
|
||||
bookies_pid :: pid() | undefined,
|
||||
bookies_mem :: tuple() | undefined,
|
||||
source_penciller :: pid() | undefined,
|
||||
snapshot_longrunning = true :: boolean(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue