Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

客户端在选择tracker提供服务时,是否可以在选择tracker时,测试一下所选择的tracker是否能连通? #77

Open
Qi-Zou opened this issue May 25, 2020 · 1 comment

Comments

@Qi-Zou
Copy link

Qi-Zou commented May 25, 2020

    public TrackerServer getTrackerServer(int serverIndex) throws IOException {
        return new TrackerServer(this.tracker_servers[serverIndex]);
    }

这里如果只是单独的选择tracker的ip返回,那么在上传的时候无法连通该tracker服务,就会导致文件上传失败!

@xiaobaiami
Copy link

赞同。对于bad tracker,我觉得应该暂时从tracker_servers中移除,通过定时检查,当tarcker恢复服务后,再添加回tracker_servers中,提高客户端处使用tracker的HA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants