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

Worker thread crashes (all API requests timeout) after disk has been full #256

Open
ErikBjare opened this issue Nov 15, 2021 · 2 comments
Open

Comments

@ErikBjare
Copy link
Member

My system drive got full the other day, and today I noticed aw-server-rust wasn't responding to API requests (but was happily serving the web UI).

After a while I realized what may have caused it, and indeed found in the logs:

thread '<unnamed>' panicked at 'Failed to commit datastore transaction! database or disk is full', aw-datastore/src/worker.rs:182:29

So, when the disk gets full, the DB worker thread panics, and future DB requests will just fail to respond (since the worker is dead).

@johan-bjareholt
Copy link
Member

I've seen this a few times before as well, have forgotten to document it.

What do you think the correct behaviour should be?
The options i see are:

  • Shut down aw-server-rust completely so the user gets notified by aw-qt
  • Drop all transactions until the disk is no longer full, but print warnings in the log.

@ErikBjare
Copy link
Member Author

ErikBjare commented Nov 15, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants