happyfish100 / happyfish100/fastdfs-client-java
客户端在选择tracker提供服务时,是否可以在选择tracker时,测试一下所选择的tracker是否能连通?
Open
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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