Abstract file backend access through file manager #204
Labels
No labels
bug
confirmed
critical
discussion
documentation
Doing
enhancement
experiment
suggestion
support
Testing
To Do
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: hazaar/framework#204
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is the first step toward achieving #201. I will be using the
Hazaar\File\Manager
class to handle the failover stuff. However at the moment, read/write commands sent to a backend come from theHazaar\File
andHazaar\File\Dir
classes directly.So this issue about removing direct access to the file backends from these classes and all read/write operations will go via the
Hazaar\File\Manager
class. This will allow these calls to be intercepted and how they are handle can be altered based on the current situation.The goal is to allow the writes to go
Hazaar\File
->Hazaar\File\Manager
->Hazaar\File\Backend\Whatever
. That way if the backend throws an offline exception we can complete write operations by writing to a local file. Then any read operations can look for that file locally and not use the backend. That is until the file is then moved onto the backends inline storage and removed from disk.Read operation will still have to fail, unfortunately.
Bright idea! This would allow us to do some sort of crude RAID-like system where we can write to two backends at a time and have build in redundency. Maybe. haha.
mentioned in merge request !99
created merge request !99 to address this issue
marked this issue as related to #201
mentioned in commit c58538ec6c20ea91a97fa17827cd32c4e9aa9272