Closed frbattid closed 7 years ago
Fixed in PR https://github.com/telefonicaid/fiware-cygnus/pull/1177 (develop, cygnus-ngsi)) Fixed in PR https://github.com/telefonicaid/fiware-cygnus/pull/1181 (develop, cygnus-twitter) Fixed in PR https://github.com/telefonicaid/fiware-cygnus/pull/1179 (release/1.2.0, cygnus-ngsi, cygnus-twitter)
Currently, the conditions for discarding the current host are based on catching exceptions when doing the Http request to the host. Nevertheless, there are certain successful connections that may lead to a host change as well, e.g. the following response sent by a Hadoop Namenode:
Current exception catching, even host iteration, are placed at
HttpBackend
. This should be moved to the particular backend implementation, cosidering both the exception or a response status as conditions for iterating to the next host.