【发布时间】:2019-01-08 17:10:58
【问题描述】:
单机配置: 我有一个服务器节点
<ignite xmlns="http://ignite.apache.org/schema/dotnet/IgniteConfigurationSection" gridName="myGrid1">
<clientConnectorConfiguration port="10800"/>
<discoverySpi type="TcpDiscoverySpi" localPort='48500' localPortRange='1'>
<ipFinder type="TcpDiscoveryStaticIpFinder">
<endpoints>
<string>127.0.0.1:48500</string>
</endpoints>
</ipFinder>
</discoverySpi>
<communicationSpi type='TcpCommunicationSpi' localPort='48100' />
和瘦客户端节点:
Ignition.StartClient(new IgniteClientConfiguration { Host = "127.0.0.1", Port = 10800})
所以我正在尝试进行下一个测试: 1) 关闭服务器节点 2)再次启动服务器节点 3) 检查客户端节点到服务器节点的连接
问题是在我调用方法的 2 步之后
ignite.GetCache<long,Entity>("cacheName").TryGet(id, out item)
我遇到了异常
System.IO.IOException:无法将数据写入传输连接:现有连接被远程主机强行关闭。 ---> System.Net.Sockets.SocketException: 远程主机在 System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size) 处强行关闭了现有连接 --- 内部异常堆栈跟踪结束 --- 在 System.Net.Sockets.NetworkStream.Write(Byte[] 缓冲区,Int32 偏移量,Int32 大小 在 Apache.Ignite.Core.Impl.Client.ClientSocket.SendRequest(RequestMessage& reqMsg) 在 Apache.Ignite.Core.Impl.Client.ClientSocket.DoOutInOp[T](ClientOp opId, Action
1 writeAction, Func2 readFunc, Func3 errorFunc) at Apache.Ignite.Core.Impl.Client.Cache.CacheClient2.DoOutInOp[T](ClientOp opId, Action1 writeAction, Func2 readFunc 在 Apache.Ignite.Core.Impl.Client.Cache.CacheClient`2.TryGet(TK key, TV& value)
【问题讨论】: