Currently there is no real testing of the retry logic, in particular leader failover, connection errors, etc... This should be addressed