EMCECS / nfs-client-java

Native Java NFS client
Apache License 2.0
70 stars 33 forks source link

fsinfo error,rpc request timeout #39

Open tangxuGoGoGo opened 2 years ago

tangxuGoGoGo commented 2 years ago

When I'm testing on an nfs server on a test network segment (not on the same network segment as the code running client), the error occurs almost every time when I get the file I/O stream. Through the exception prompt information, an exception is thrown when fsinfo is called.The detailed exception stack trace is as follows: Exception in thread "main" com.emc.ecs.nfsclient.nfs.NfsException: networ error,server:xxxxxx, RPC error: rpc request timeout on the connection:/xxxx:2049 at com.emc.ecs.nfsclient.rpc.RpcWrapper. hanldeRpcException(Rpcwrapper.java:311) at com.emc.ecs.nfsclient.rpc.RpcWrapper. callRpcWrapped(Rpcwrapper.java:134) at com.emc.ecs.nfsclient.nfs.nfs3.Nfs3.wrapped_getFsInfo(Nfs3.java:1273) at com.emc.ecs.nfsclient.nfs.nfs3.Nfs3.wrapped_getFsInfo(Nfs3.java:90) at com.emc.ecs.nfsclient.nfs.io.NfsFileBase.fsInfo(NfsFileBase.java:1161) at com.emc.ecs.nfsclient.nfs.io.NfsFileInputStream.(NfsFileInputStream.java:159) It is worth noting that I can get the expected result when I perform fileList.