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
Assume that there will be many (>10) threads with separate API instances, which may (though I try to avoid it) be near the same execution step in their use of DataFS. Please check that the following scenarios are handled gracefully:
One instance begins downloading file A, and the next moment another instance requests the same file.
Instance 1 checks for file A and determines that it does not need to download it because it is already in the cache; before it has a chance to copy it out, instance 2 deletes file A from the cache.
Instance 1 is repeatedly accessing version 1 of file A, while instance 2 is repeatedly accessing version 2 of file A. Both have a caching policy of last-accessed.
The text was updated successfully, but these errors were encountered:
I agree that once refactored we definitely must be able to handle all of these. However, I don't think we should use last-accessed for any of our systems. I think we should use 'all' or, if space constraints are a problem, 'latest'.
Furthermore, (3) seems to me to be a pathological case and, while it's important that DataFS behaves correctly under these circumstances, I don't see any problem if there is a significant performance penalty for behavior consistent with (3). Does that seem right to you?
@jgerardsimcock putting a pin in this - there's a way to lock fs objects across threads even outside of the core methods. Maybe there is something we could be doing to prevent simultaneous access across multi-step operations such as cache + read, for example.
Agreed that performance penalties on (3) are fine. But it's not that pathological: It is fairly common for us to have two different versions of the same sector running at the same time. E.g., we are producing a set of results, and then find a way to improve one of the underlying datasets. Rather than kill the first one (since we might decide to not use the improvement in the end), we just spin up another set of runs with the other dataset.
Assume that there will be many (>10) threads with separate API instances, which may (though I try to avoid it) be near the same execution step in their use of DataFS. Please check that the following scenarios are handled gracefully:
One instance begins downloading file A, and the next moment another instance requests the same file.
Instance 1 checks for file A and determines that it does not need to download it because it is already in the cache; before it has a chance to copy it out, instance 2 deletes file A from the cache.
Instance 1 is repeatedly accessing version 1 of file A, while instance 2 is repeatedly accessing version 2 of file A. Both have a caching policy of last-accessed.
The text was updated successfully, but these errors were encountered: