Predis\Connection\Cluster\RedisCluster::retryCommandOnFailure PHP Метод

retryCommandOnFailure() приватный Метод

The connection to the node that generated the error is evicted from the pool before trying to fetch an updated slots map from another node. If the new slots map points to an unreachable server the client gives up and throws the exception as the nodes participating in the cluster may still have to agree that something changed in the configuration of the cluster.
private retryCommandOnFailure ( Predis\Command\CommandInterface $command, string $method ) : mixed
$command Predis\Command\CommandInterface Command instance.
$method string Actual method.
Результат mixed
    private function retryCommandOnFailure(CommandInterface $command, $method)
    {
        $failure = false;
        RETRY_COMMAND:
        try {
            $response = $this->getConnectionByCommand($command)->{$method}($command);
        } catch (ConnectionException $exception) {
            $connection = $exception->getConnection();
            $connection->disconnect();
            $this->remove($connection);
            if ($failure) {
                throw $exception;
            } elseif ($this->useClusterSlots) {
                $this->askSlotMap();
            }
            $failure = true;
            goto RETRY_COMMAND;
        }
        return $response;
    }