happyfish100 / fastdfs

FastDFS is an open source high performance distributed file system (DFS). It's major functions include: file storing, file syncing and file accessing, and design for high capacity and load balance. Wechat/Weixin public account (Chinese Language): fastdfs
GNU General Public License v3.0
8.91k stars 1.97k forks source link

FastDFS 上传文件上传成功后 用返回的地址去下载后发现并不是上传的文件 #683

Open halo1228 opened 6 months ago

halo1228 commented 6 months ago

上传文件后 返回文件地址, 在用返回的文件地址去下载文件并不是原本上传的文件

happyfish100 commented 6 months ago

用的是Java SDK吗?你们这个问题应该是多线程中实例了同一个 TrackerClient 或者 StorageClient导致的。 注:TrackerClient 和 StorageClient 均为非线程安全,需要在使用时创建对象或者使用对象池。