Skip to content

add dirty flag to make node to db reconnection faster

Marcin requested to merge mi_remove_join_operation_with_account_operations into develop
The table hive.irreversible_data was extended to column dirty (boolean).
When dirty is TRUE it means that irreversible data are in an inconsistent state.
When the HAF will crash during sync (replay or p2p sync) then data are
inconsistant: some dumping data thread finishes their jobs and some do not.
When node after the crash will start, then it checks the dirty flag, if flag
is set, then inconsistent data have to be removed but it may last very long
time, because during replay there are no indexes to make inserting new rows faster.
During restarting the HAF after the crash an error is returned with information about data inconsistency.
To succesfuly restart, the node the switch `--psql-force-open-inconsistent` must be used.
Edited by Marcin

Merge request reports