-
Notifications
You must be signed in to change notification settings - Fork 3
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
Human readable mapping between GError codes and messages #3
Comments
As a current solution we are mapping them to the possix error codes. So far this works well. But we need a confirmation from you that this is actually the best approach. And those error codes do indeed follow the possix standard. But since gfal supports plenty of protocols we need to double check with you. As an example, this GError (message && code) seems to be having its origins from
and if we try to map it to the possix error code we get:
Which is more or less similar, but actually the most precise interpretation we get when we try to use the
So it leads to the impression there is an intermediate layer for purifying things by including the protocol in use into the picture or something else. Any clarification would be of great help. Thanks again! |
Dear Experts,
In one of our cleanup services we are using
gfal2-python
for remote deletions at the sites. It is working well, but we have troubles accounting the errors. And more precisely: we are doingctx.unlink([list of pfns])
and once we have the returned list of GErrors we iterate through it and try to preserve them in an external database. The database we use is MongoDB. And as simple it sounds it still leads us to a problem with inserting the records in the external database, because some of the error messages are having way too complicate format to be used as key values in the database. Which is kind of a blocker for us. Here we have some more details about the errors we are fighting with: [1]. There could be plenty of solutions to the problem and one way out of the situation is a well defined mapping between error codes and human readable strings/variables, enums etc... anything of the sort would do. Do you already have such mapping or a place (eventually in the documentation or in a header file), where we can take a look and create it ourselves?Thanks in advance!
[1]
dmwm/WMCore#10687 (comment)
The text was updated successfully, but these errors were encountered: