Shutdown with warning when disk space is low
Is your feature request related to a problem? Please describe. The database grows in size constantly when the client runs, it may lead to the situation when there is no more space on device The client still tries to save the data, which results in data saving errors and possible database inconsistency
Describe the solution you'd like To prevent from database issues that may appear when more space is allocated and the client continues running Let the client shutdown gracefully with a warning message, that may look like that: "Client execution is stopped because there is not enough space left on the device. Please, allocate more space for %db_path%, then start the client again"
Describe alternatives you've considered The users may try to use pruning to free some space, should we inform about such option? How the client should behave when it starts and there is still not enough space, but the pruning is enabled?
Additional context
Full pruning should not break the database and rollback correctly when the client terminates due to lack of space. // TODO: Add the current exceptions we get when out of space