-
-
Notifications
You must be signed in to change notification settings - Fork 327
[v3] StoreTests[RemoteStore]
#1956
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
Conversation
Co-authored-by: Norman Rzepka <[email protected]>
…eveal multiple event loop error
We are getting failures like this:
cc @martindurant in case you have any insights here. This builds off #1785, but since I'm touching a lot of code here, I spun it out into a separate PR (and I opened a corresponding PR against your branch, which you can ignore if you would rather look here). |
Co-authored-by: Martin Durant <[email protected]>
Thanks @d-v-b for advancing this! |
A heads up that I am likely in the throws of the same or at least similar issues here: The mock tests failed but also a production run against a production but non-standard
I'll read through @d-v-b's history and see if it's the same problem or not. Edit: yes, from #1956 (comment) it's the same. So a production bug and not just a testing issue. Note: I'm using the cc: @martindurant |
If the s3fs instance is to be used in async mode (which is the case), then it must be created within a coroutine running on the same event loop and thread as when it will be called. You can assign the loop= kwargs and defer creation of the session object, but it's better to follow the above rule.
This will make a new instance, which is probably the difference. fsspec will reuse instances having exactly the same set of init arguments unless otherwise directed. |
Thanks, @martindurant! That makes sense conceptually, but can you give me a pointer on how to do that reliably for the new RemoteStore? |
I suppose |
Attempts to specialize
StoreTests
withRemoteStore
. Depends on #1785.This is currently broken because I can't figure out the correct way to link up the
s3
fixture with theStoreTests
instance. Help would be appreciated!TODO: