client.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:spark 作者: chenguolin 项目源码 文件源码
def __handle_socket_error(self, exception):
        log.debug("Request failed with %s" % exception)
        if exception.errno in (errno.ECONNREFUSED, errno.EHOSTUNREACH):
            # if NN is down or machine is not available, pass it:
            self.namenode.next() # Failover and retry until self.max_failovers was reached
        elif isinstance(exception, socket.timeout):
            self.namenode.next() # Failover and retry until self.max_failovers was reached
        else:
            raise
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号