-
Notifications
You must be signed in to change notification settings - Fork 92
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
meta*: Deny requests upon I/O errors #1395
Conversation
Codecov Report
@@ Coverage Diff @@
## 4.1.x #1395 +/- ##
==========================================
- Coverage 76.72% 76.57% -0.16%
==========================================
Files 298 298
Lines 55601 55651 +50
Branches 6770 6776 +6
==========================================
- Hits 42658 42612 -46
+ Misses 12689 12685 -4
- Partials 254 354 +100
Continue to review full report at Codecov.
|
@@ -71,8 +71,6 @@ def get_stats(self): | |||
result = self._parse_func(resp.read()) | |||
else: | |||
raise Exception("status code != 200: %s" % resp.status) | |||
except Exception as e: | |||
self.logger.debug("get_stats error: %s", e) |
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.
The return statement in the finally
block will prevent any exception from being raised from this method. It should be moved here.
sqlx/sqlx_service.c
Outdated
goto label_io_error; | ||
} | ||
if (err) | ||
g_clear_error(&err); |
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.
err
won't be set by g_file_set_contents
if it returns true.
known limitation: the support of the REQ_PING is really limited in the conscience-agent, the return code is not even checked. We could save the REQ_STAT request if we immediately consider the service is down. then we could even allow the REQ_STAT to return complete information.