You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of bug
When the server starts, it only reads from the data.bin file to restore the previously stored data. In the current implementation, if another process locks the file (for some reason, not something predictable) while the server is running, the server quits without flushing the data - with an error message.
There are two solutions to this:
Lock the file (record-level) OR
Wait for the other process to release the lock
For (1): This is fairly easy to implement and is better than (2) since we already have a lock on the file. Also, in the event that a quick shutdown is needed, this would be the most reliable option.
For (2): This is the easiest thing to implement - but there are doubts about how reliable this can be. The lock on the file may never be released and we may never be able to write to it. Also, if a quick shutdown is required, this solution is not favorable at all.
Steps to reproduce
NA
Expected behavior
NA
Meta
Release tag: None
Branch: None
Commit ID: None
Operating system: None
Additional context
None
The text was updated successfully, but these errors were encountered:
Description of bug
When the server starts, it only reads from the
data.bin
file to restore the previously stored data. In the current implementation, if another process locks the file (for some reason, not something predictable) while the server is running, the server quits without flushing the data - with an error message.There are two solutions to this:
For (1): This is fairly easy to implement and is better than (2) since we already have a lock on the file. Also, in the event that a quick shutdown is needed, this would be the most reliable option.
For (2): This is the easiest thing to implement - but there are doubts about how reliable this can be. The lock on the file may never be released and we may never be able to write to it. Also, if a quick shutdown is required, this solution is not favorable at all.
Steps to reproduce
NA
Expected behavior
NA
Meta
Additional context
None
The text was updated successfully, but these errors were encountered: