happyfish100 / happyfish100/fastdfs-client-java
访问fastDFS集群时总是group1和group2轮流访问
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.6k
- Forks
- 891
- PR merge metrics
- No merged PRs in 30d
Description
假设现在有group1和group2两个组,然后有个文件是在group2里面保存的。但是在用storageClient.delete_file(groupName,remote_filename)方法去删除文件的时候,虽然已经指定了groupName为group2,但是首次执行时仍会去访问group1,因为找不到文件就返回了22错误码。然后再执行一次时,才会去访问group2。 然后再执行一次,又会去访问group1了。
就很奇怪为什么明明已经指定了group,但是在执行的时候还是会来回的变换group访问,这是bug吗?
而如果用linux安装时带的fdfs_delete_file 功能去操作时就不会有这个问题。
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 at the storageClient.delete_file(groupName, remote_filename) entry point and reproduce the group2 deletion against a cluster containing group1 and group2. Compare its behavior with the Linux fdfs_delete_file command; the fix is complete when an explicitly selected group is used consistently and the unexpected error 22 no longer occurs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- distributed-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100