happyfish100 / happyfish100/fastdfs-client-java

上传失败

Open
#52 0 comments 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

1 tracker , 2 storaged(同一个组) ,2个dht

同一个文件 通过 javaclient.jar 上传偶数次一定会上传失败。
但N个文件交替上传,则全部都能成功。
报错: error code: 2

但通过命令行 /usr/bin/fdfs_upload_file /etc/fdfs/client.conf test.png 上传没问题。

可能会是什么问题?

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

Reproduce the issue with javaclient.jar using one file repeatedly, then compare it with alternating N files and the /usr/bin/fdfs_upload_file command using /etc/fdfs/client.conf and test.png. Start by tracing the Java client's upload path and error code 2 handling, then compare its behavior with the command-line client. Done means the repeated same-file upload succeeds or the failure is documented with a confirmed cause.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.