Fix ConnectionErrorProof response count on single node read errors
on a read error, executeSingleNode() computed the number of missing responses from the already dequeued command queue, so it returned too few elements or threw a ValueError from array_fill(). the failed command and all remaining ones now get the connection exception, matching executeCluster().
This commit is contained in:
1 parent
7c87a97e67
commit
d75f5e786f
3 files changed
+58
-1
No files matched your search
@@ -73,7 +73,7 @@ class ConnectionErrorProof extends Pipeline
|
||||
try {
|
||||
$responses[$i] = $connection->readResponse($command);
|
||||
} catch (CommunicationException $exception) {
|
||||
$add = count($commands) - count($responses);
|
||||
$add = $sizeOfPipe - count($responses);
|
||||
$responses = array_merge($responses, array_fill(0, $add, $exception));
|
||||
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user