happyfish100 / happyfish100/fastdfs-client-java

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

Open
#77 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.6k
Forks
891
PR merge metrics
No merged PRs in 30d

Description

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

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with getTrackerServer(int serverIndex) and trace how the returned TrackerServer is used during file uploads. Check how tracker connectivity failures are currently surfaced, then determine how selection should verify reachability before returning a tracker. Done means an unreachable selected tracker does not cause the upload to fail unexpectedly.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.