This repository was archived by the owner on Oct 29, 2024. It is now read-only.
Raise InfluxDBServerError for server error instead of InfluxDBClientError #236
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Shouldn't InfluxDBServerError be raised when InfluxDB fail to serve a request (e.g. HTTP status is 5xx) instead of InfluxDBClientError.
I need this distinction, because I've some code retry writing when server fail (not started/starting) but discard malformed input. E.g. :
This would also be valuable for InfluxDBClusterClient, who should go to next server if one of the server fail.
One case were InfluxDB return a 500 error code (that is not due to bad input) is during startup of single node, before metastore initialization. In this case I got the error
metastore database error: no leader
. This is obviously only a temporary error and few seconds later server is available.