Closed (outdated)
Project:
S3 File System
Version:
7.x-2.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Oct 2015 at 12:17 UTC
Updated:
15 Jan 2025 at 05:15 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
TomGould01 commentedComment #3
coredumperror commentedLooking at your patch to the _read_cache() function, it looks like it actually breaks the anti-stampede code for every future cache read after 10 failed attempts to acquire the lock for a single file. Probably not the best solution.
In the attached patch, I've re-coded the recursive call into a goto. Could you try that out to see if it works? I've never actually used a goto before, since it's considered such a bad practice. But it seems like this is exactly the kind of situation it would actually be useful for.
Though as I look further into this, I'm really not sure why you'd be having this recursion problem at all. The lock that _read_cache() acquires applies only to a single file, so I'm not really sure what circumstances would even be able to repeatedly trigger the
!lock_acquire($cid, 1)condition. Could you please describe what you (or some script) were doing when this recursion problem occurred?For the cache refresh patch, I'm not really sure what it's doing. What "integrity constraint issues" are you testing for, and how is your code dealing with them?
Comment #4
coredumperror commentedDid you ever solve your problem with this issue? Please let me know yes, or no, so I can either close this issue or continue to work toward a solution.
Comment #5
kenorb commentedComment #6
kenorb commentedComment #7
cmlaraDrupal 7 end-of-life triage:
Drupal 7 reached end of life on January 5th.
The 7.x branches of S3FS do not have any additional planned releases.
The requests in this issue do not appear to exist in the 8.x-3.x and newer branches.