thibaultcha / lua-cassandra

Pure Lua driver for Apache Cassandra
https://thibaultcha.github.io/lua-cassandra
Other
98 stars 35 forks source link

feat(cluster) record and log errors causing nodes to be marked as DOWN #129

Closed thibaultcha closed 5 years ago

thibaultcha commented 5 years ago

This updates the host still considered down error logs to include the error causing the node to be down, as well as the duration for which it will still be considered down. E.g.:

all hosts tried for query failed. 127.0.0.1: host still considered
down for 1s (last error: timeout). 127.0.0.2: host still considered
down for 1s (last error: timeout)