-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
use polling for cache if available #1937
Comments
|
Any update for google drive on this? |
|
@zenjabba not yet, I've mostly been working on the reliable upload enhancement which is tidying up just nicely to be released in the spare time I had. Thanks for asking |
|
Waiting on tender hooks for this update. |
|
I got it running, just testing to make sure nothing breaks :) |
|
Forgot to link the commit: b33e3f7 Though I do find that the first point still happens: moving a file doesn't seem to expire both parent folders, only the destination But that seems to be the only quirk. Apart from it, both cache and the vfs cache are told to expire their entries. |
|
Link to beta: https://beta.rclone.org/v1.39-128-gb33e3f77/ |
|
Is it enabled by default or do you need an experimental flag to enable it? |
|
@Daniel-Loader it's enabled as long as the wrapped remote supports it too. In gdrive's case, it will. |
|
To confirm, the message |
|
started testing today, will report back after a few days. |
|
Yeah ditto, testing alongside plexdrive for comparison, so far so good! |
|
I am also calling this a win so far! |
|
New beta for a related issue: https://beta.rclone.org/v1.39-130-g54724a13/ It's really about temporary uploading but the fix involves this new feature. |
|
I'm assuming it's not a "critical" update, and I'll update at next quiet time... in the year 2051 |
|
Quick question though, is this evicting a directory at a time if something changes, or the files? What happens if a file is added to/removed from a directory of 20,000 files? |
|
If you see a lot of unexpected eof during readings then it's likely the same cause as in the linked issue. That version should fix it. But I think it's a bit of an edge case when it happens so you might not encounter it at all. |
|
You are both correct. If there's a large folder then it's going to be a pain to evict each file. Sadly, the entire watch feature I'm using seems to be watching only for folders. There are several ways to improve on this:
I think both of them need to be implemented |
|
So with API driven cache eviction is there a need for the info age? If so should I remount it with a value much larger than 3 hours? |
|
@Daniel-Loader Yep, I'm doing 24h for my personal drive. But I was also using that before, I don't write anything outside the mount. Go higher, see how it works. If you encounter a scenario where something was changed on drive and it's not reflected after at least 1 minute in cache, let me know so that I can test it. |
|
@remusb wrote:
That sounds like a good idea. The API was developed for the VFS cache so could do with expanding! |
|
Experiencing the issue mentioned above (moving a file doesn't seem to expire both parent folders, only the destination) but other than that this is working great! |
|
I'm still having problems with the new polling feature for cache... I use I write to the remote from another machine, on a different network, with
Maybe expiring a top level directory doesn't work correctly? Or maybe the parenthesis in a dir name cause trouble? I'm running out of ideas otherwise.. It's a single On my other machine, where I just Maybe somebody got an idea? Would be more than happy to do some troubleshooting but really don't know where to start :/ |
|
@jusher00 i don't think it is the issue here but be careful as said in the doc having: |
|
Yeah now I got fooled by my own naming convention haha, I wish |
|
With the recent ChangeNotify changes, there shouldn't be cases where we don't get notifications. I'm stopping further enhancements on this feature for 1.4. If you have issues with the notification system feel free to open a new issue. |
Some remotes support polling for changes on them. As far as I can tell, only drive does this now.
cachecan subscribe to those events and automatically expire its entries too.Some issues I found already:
cachewould best work if it doesn't expire its entries at all but it seems some cases aren't included in the notificationsdircachethat the drive remote uses to translate between a drive ID and a path in rclone. I haven't seen an issue yet but I'm wondering if there might a case where DirCache will not have an entry while it does exist incache.The text was updated successfully, but these errors were encountered: