This repository was archived by the owner on Oct 3, 2023. It is now read-only.
Replies: 3 comments 6 replies
-
|
I think you're right 🤔 the async_lock indeed blocks the access to the fs even if it's reading different files, the idea behind it was to avoid a race condition on r/w the same file. Thanks for the catch |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Thinking about this more, @obendidi, why do we care about race condition on the same file? |
Beta Was this translation helpful? Give feedback.
5 replies
-
|
In that case, instead of the file lock, what do you think of catching any
read exception and handling it by re-issuing the http request ?
…On Sat, May 28, 2022, 04:33 Ouail ***@***.***> wrote:
In the unlikely edge case where we send the same request twice, and if the
response has a large payload, it is very possible that the second request
will try to read the file that first request has not finished writing
—
Reply to this email directly, view it on GitHub
<#45 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAON3LGAUZV7XDDI2QMWKSLVMHK63ANCNFSM5VZEJY3A>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Reading through this am I correct in understanding that the use of async lock makes getting a large number of already-cached responses essentially sequential?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions