-
Notifications
You must be signed in to change notification settings - Fork 356
Avoid GFAL error when exists(None)
is called.
#7398
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
Comments
Personally, I feel like we should fix this issue in RSEManager itself. I don't think we should even run IMO the core issue is this: we mark rucio/lib/rucio/rse/protocols/protocol.py Lines 208 to 219 in 5dcf2f9
And from https://docs.python.org/3/library/abc.html#abc.abstractmethod:
But clearly, it seems that we are okay with having subclasses of rucio/lib/rucio/rse/protocols/storm.py Lines 71 to 80 in 5dcf2f9
And of course based on the fact that we rely on this rucio/lib/rucio/rse/rsemanager.py Lines 274 to 280 in 5dcf2f9
I think what we should do is:
|
Removed completely the usage of protocol.exists(None) and placed the fallback to `write` protocol when exists(..) is not overridden.
Removed completely the usage of protocol.exists(None) and placed the fallback to `write` protocol when exists(..) is not overridden.
Removed completely the usage of protocol.exists(None) and placed the fallback to `write` protocol when exists(..) is not overridden.
Description
In our code (e.g.,
rsemanager.exists(...)
), we do:rucio/lib/rucio/rse/rsemanager.py
Lines 272 to 280 in 37cc33b
exists(None)
would lead to an internalctx.stat("None")
which raises"Protocol not supported or path/url invalid: None."
rsemanager.exists(...)
byexcept Exception: pass
, so we never fall back to the “write” protocol. The rest of the flow may work, but we see messy log errors about “stat(None).”None
, maybe, at the beginning of gfal'sdef exists(self, path):
we should do something like:Steps to reproduce
Trigger the
exists(...)
of rsemanager.py with gfal.Rucio Version
36.3.0
Additional Information
No response
The text was updated successfully, but these errors were encountered: