-
Notifications
You must be signed in to change notification settings - Fork 2
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
Tale must be restarted to see new versions #14
Comments
I wonder if this is related to the modification time issue that you just filed with respect to image re-building. What I know for sure is that ls will fail updating if the modification time is not properly updated. |
@hategan I don't think this is the problem. In this case, the image was successfully built (the workspace modification time is only used for subsequent builds). With this issue, =when a new version is added via the API, GirderFS is not propagating the new version to the container. |
GirderFS caches the /Versions directory. Every time it is accessed through FUSE, it checks, in sequence:
Only if both of the above tests fail, does GirderFS fetch a new listing of /Versions. |
OK, that makes sense. However, this mtime is different than the mtime used for image builds. |
Testing this a while back, I thought this had been fixed by whole-tale/virtual_resources#10 but am again seeing the reported behavior. When I create a new version while the container is running, it does not appear via |
Noting that this is currently also the case with version rename and delete operations. |
The issue here is that listing of version root is associated in girderfs cache with the Tale object. I guess https://github.com/whole-tale/girderfs/blob/master/girderfs/core.py#L1256 is biting us here... As workaround we could call |
@Xarthisius, maybe. I'm looking at the But it may be wise to add a sequence number (or equivalent) to the tale. |
Yeah, that was another thing we found today. I fixed that via whole-tale/wt_versioning#23 Now everything i.e. version folder, versions root folder and a tale, should be updated during rename. |
Problem
New versions do not appear in /versions mount until container is restarted.
Steps to Reproduce
Expected Results
New versions are accessible from inside container without restarting
Actual Results
New versions are only accessible from inside container after restarting
The text was updated successfully, but these errors were encountered: