Don't submit retry when operation has already errored

This commit is contained in:
Tyler Hobbs
2013-10-10 16:20:56 -05:00
parent 2db7cd7a3e
commit decd31dbe1

View File

@@ -1609,6 +1609,11 @@ class ResponseFuture(object):
fn(response, *args, **kwargs)
def _retry(self, reuse_connection, consistency_level):
if self._final_exception:
# the connection probably broke while we were waiting
# to retry the operation
return
if self._metrics is not None:
self._metrics.on_retry()
if consistency_level is not None: