-
Notifications
You must be signed in to change notification settings - Fork 510
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
FdfsParamMapper报错 #19
Comments
|
申明一下我测试场景:连接池总大小500个,最大等待时间1000毫秒。我是在进行文件上传的压力测试,然后大概在上传文件到达大概3W个多一些的时候(3W多文件上传花费时间五分钟左右),就会报错,后台打印的错误日志信息中提示:1: 客户端连接服务端出现了io异常:socket io exception occured while receive content 不知道是不是因为压力测试影响了socket连接和请求无法及时返回造成的? 还是我的连接池需要进一步优化? 截取的关键日志信息如下:2017-06-09 18:30:51 - com.touna.storageapi.service.impl.SmallFileStorageServiceImpl.uploadFileList(SmallFileStorageServiceImpl.java:384) - [ 790236 ] - [ ERROR ] 文件:7gFfx6tV.txt文件上传失败! |
检查一下服务端的日志,看看有没有错误。 服务端版本号是多少?FDFS_V5.07当中120 不是标准的返回报文。 |
请问是如何解决的? |
怎么解决的? |
咋解决的? |
更新最新的客户端试试 |
1.26.7吗? |
是的,现在用的哪个版本? |
fastdfs 5.05,FdfsDFS_Client 1.26.7,Spring boot 2.1.9.RELEASE,uploadImageAndCrtThumbImage方法第一次提交图片时成功,再次提交时就会报上面recieve content error,read timeout,command error之类的错... |
方便的化,相关代码贴一下看看,还有错误日志 |
我使用的是1.26.7版本,多线程情况下时不时的报错:错误如下 |
@Yikaba 把日志打开跟踪看一下
得看下服务端返回的信息是什么? 目前怀疑服务端返回的数据格式可能有问题,导致解开报文错误。 |
在使用过程中,发现有一个异常,具体错误信息如下,好像这是一个潜在的bug,应该是在反射的时候出错了。不知道怎么修复了。
Caused by: java.lang.RuntimeException: execute fdfs command error
at com.github.tobato.fastdfs.conn.ConnectionManager.execute(ConnectionManager.java:78)
at com.github.tobato.fastdfs.conn.ConnectionManager.executeFdfsCmd(ConnectionManager.java:58)
at com.github.tobato.fastdfs.service.DefaultFastFileStorageClient.uploadFileAndMetaData(DefaultFastFileStorageClient.java:78)
at com.github.tobato.fastdfs.service.DefaultFastFileStorageClient.uploadFile(DefaultFastFileStorageClient.java:41)
at com.touna.storageapi.common.FastdfsClient2.uploadFile(FastdfsClient2.java:211)
... 57 more
Caused by: com.github.tobato.fastdfs.proto.mapper.FdfsColumnMapException: java.lang.IllegalAccessException: Class com.github.tobato.fastdfs.proto.mapper.FdfsParamMapper can not access a member of class java.lang.Void with modifiers "private"
at com.github.tobato.fastdfs.proto.mapper.FdfsParamMapper.map(FdfsParamMapper.java:52)
at com.github.tobato.fastdfs.proto.FdfsResponse.decode(FdfsResponse.java:54)
at com.github.tobato.fastdfs.fastdfs.proto.AbstractFdfsCommand.receive(AbstractFdfsCommand.java:105)
at com.github.tobato.fastdfs.proto.AbstractFdfsCommand.execute(AbstractFdfsCommand.java:45)
atcom.github.tobato.fastdfs.conn.ConnectionManager.execute(ConnectionManager.java:73)
... 61 more
Caused by: java.lang.IllegalAccessException: Class com.github.tobato.fastdfs.proto.mapper.FdfsParamMapper can not access a member of class java.lang.Void with modifiers "private"
at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:109)
at java.lang.Class.newInstance(Class.java:373)
at com.github.tobato.fastdfs.proto.mapper.FdfsParamMapper.mapByIndex(FdfsParamMapper.java:89)
at com.github.tobato.fastdfs.proto.mapper.FdfsParamMapper.map(FdfsParamMapper.java:46)
... 66 more
The text was updated successfully, but these errors were encountered: