Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

获取的storage节点的port=0 #700

Open
YiXing-Zhou opened this issue Mar 12, 2024 · 4 comments
Open

获取的storage节点的port=0 #700

YiXing-Zhou opened this issue Mar 12, 2024 · 4 comments

Comments

@YiXing-Zhou
Copy link

Hi,我在SpringBoot里边整合FastDFS,DefaultFastFileStorageClient.getStorageNode(String groupName) ,获取到的 storage端口号是 "0" ; 我看您回答可能是版本问题,帮忙看一下我的版本是否有问题吧,多谢~
相关配置:
tracker 配置 port 22122、storage 配置 port=23000
FastDFS v6.12.1
spring boot 导入包版本:

com.github.tobato
fastdfs-client
1.27.2

@happyfish100
Copy link
Owner

fastdfs-client-java 版本太低了,需要使用最新的 v1.32

@yourfa-3270
Copy link

maven仓库最新的才1.27.2
image

@YiXing-Zhou
Copy link
Author

maven仓库最新的才1.27.2 image

Hi,这个问题确实和版本有关,最快的修复方案我可以提供一下给你;
如果你和我遇到同样的问题,可以先继承一下 DefaultTrackerClient 类,然后强制修改一下返回port值,这样就可以解决这个问题了;
Example:
image

@yourfa-3270
Copy link

好的,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants