-
Notifications
You must be signed in to change notification settings - Fork 205
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
Fix race-condition reading job module details files #4948
Fix race-condition reading job module details files #4948
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought the conclusion in our meeting was that we do not want an exception if the file is not there (return {}
)
I wanted to see test results and based on those see if maybe the exceptions are already handled on a higher level and turned into properly returned error messages |
I think the idea is that we do want to use exceptions to handle that error because they don't introduce race conditions where we can still run into the issue, but catch those exceptions and return something like 404 to the client. |
A not readable test module result file is handled and gracefully returned to the web UI and no error in log. The handling should be atomic, not "check if readable and then read". Instead of trying to read and then fail we should handle the read attempt as we handle the exception in line 96 and return {} in case of error. Related progress issue: https://progress.opensuse.org/issues/121444
e4e3434
to
f05a288
Compare
Updated the PR to explicitly return |
A not readable test module result file is handled and gracefully
returned to the web UI and no error in log. The handling should be
atomic, not "check if readable and then read". Instead of trying to read
and then fail we should handle the read attempt as we handle the
exception in line 96 and return {} in case of error.
Related progress issue: https://progress.opensuse.org/issues/121444