Apache Ignite近缓存始终未命中

Apache Ignite近缓存始终未命中,ignite,near-cache,Ignite,Near Cache,当使用近缓存时,一切都会正常工作,直到第二个客户端在缓存操作过程中尝试连接或断开与集群的连接 在第二个客户端连接/断开连接后,原始客户端将始终错过近缓存,直到原始客户端重新启动。几乎就像集群通知客户他们的问题,并将集群作为真相的来源 我们已经能够通过运行测试并连接/断开visor来重现这一点。在断开连接的过程中,我们可以看到原始客户端IgniteTxManager$NodeFailureTimeoutObject上的日志中提到的超时 下面是org.apache.ignite.internal.p

当使用近缓存时,一切都会正常工作,直到第二个客户端在缓存操作过程中尝试连接或断开与集群的连接

在第二个客户端连接/断开连接后,原始客户端将始终错过近缓存,直到原始客户端重新启动。几乎就像集群通知客户他们的问题,并将集群作为真相的来源

我们已经能够通过运行测试并连接/断开visor来重现这一点。在断开连接的过程中,我们可以看到原始客户端IgniteTxManager$NodeFailureTimeoutObject上的日志中提到的超时

下面是org.apache.ignite.internal.processors被抑制的日志片段

[2017-10-09 14:26:52.148]启动-9955调试[http-nio-8081-exec-8]-CacheHelper:访问缓存的总时间ng-security-service-ORG_SPEC_cache for key*| value com.cache.model。PrefixCluster@78475a88:0毫秒 [2017-10-09 14:26:52.150]boot-9955调试[disco-event-worker-26%null%]-GridDiscoveryManager:守护程序节点左侧拓扑:TcpDiscoveryNode[id=4cc6c321-d9cc-4149-a6ef-cba68877a269,addrs=[10.70.255.8127.0.0.1172.17.0.1],sockAddrs=[/172.17 .0.1:0,/127.0.0.1:0,/10.70.255.8:0],disport=0,order=57,intOrder=31,lastExchangeTime=1507577126368,loc=false,ver=2.1.020170720-sha1:a6ca5c8a,isClient=true] [2017-10-09 14:26:52.150]boot-9955调试[http-nio-8081-exec-8]-OrgSpecCacheImpl:OrgSpec缓存统计信息:OrgSpec ObjId:IgniteCacheProxy[delegate=GridNearCacheAdapter[],opCtx=null,restartFut=null]命中数:120,错误数:50,平均时间: 120,驱逐计数:0 [2017-10-09 14:26:52.150]boot-9955 DEBUG[disco-event-worker-26%null%]-GridDeploymentPerVersionStore:处理节点离开事件:DiscoveryEvent[evtNode=TcpDiscoveryNode[id=4cc6c321-d9cc-4149-a6ef-cba68877a269,addrs=[10.70.255.8127.0.0.1,172.17.0.1],sockAddrs=[172.17.17.0.1:0,/127.0.0.1:0],discPort=0,order=57,intOrder=31,lastExchangeTime=1507577126368,loc=false,ver=2.1.020170720-sha1:a6ca5c8a,isClient=true],topVer=58,nodeId8=2e573c60,msg=Node左:TcpDiscoveryNode[id=4cc6c321-d9cc-4149-a6ef-cba68877a269,addrs=[10.70.255.8,127.0.0.1,172.0.1,172.0.0.1],sockAddrs=[172.17.0.0:0.0.1],disport=0,order=57,intOrder=31,lastExchangeTime=1507577126368,loc=false,ver=2.1.020170720-sha1:a6ca5c8a,isClient=true],type=NODE_LEFT,tstamp=1507577212142] [2017-10-09 14:26:52.163]启动-9955信息[exchange-worker-27%null%]-时间:启动exchange初始[topVer=AffinityTopologyVersion[topVer=58,minorTopVer=0],crd=false,evt=11,node=TcpDiscoveryNode[id=2e573c60-45f0-4429-a3fa-068489663148,地址=[0:0:0:0:0:0:1%lo,10.70.242.138,127.0.1],sockAddrs=10.70.0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:1%1%lo:0,/127.0.0.0.1:0),discPort=0,order=0,order=0,order=5,order=56,order=56,order=56,订单=56,订单=5,订单=56,入订单=0,订单=0,订单=0,订单=0,订单=0,订单=0,订单=0,入订单=0,最后交换时间=0,最后交换时间=0,最后交换时间=15075757,最后交换时间=0,最后交换时间=15075767,最后交换时间=1507575769797979797971751751751751751751751751751751751751751751751751751751751751751751751751751751751754,Lo4,lo,实际,lo,lo RS=[port-svc-inc-13.tw test.net/10.70.242.138:0,/0:0:0:0:1%lo:0,/127.0.0.1:0],discPort=0,order=56,intOrder=0,lastExchangeTime=1507576971754,loc=true,ver=2.1.020170720-sha1:a6ca5c8a,isClient=true],customEvt=null] [2017-10-09 14:26:52.164]启动-9955信息[exchange-worker-27%null%]-GridDhtPartitionsExchangeFuture:快照初始化已完成[topVer=AffinityTopologyVersion[topVer=58,minorTopVer=0],时间=0毫秒] [2017-10-09 14:26:52.164]启动-9955信息[exchange-worker-27%null%]-GridDhtPartitionsExchangeFuture:快照初始化已完成[topVer=AffinityTopologyVersion[topVer=58,minorTopVer=0],时间=0毫秒] [2017-10-09 14:26:52.164]启动-9955信息[exchange-worker-27%null%]-时间:完成exchange初始化[topVer=AffinityTopologyVersion[topVer=58,minorTopVer=0],crd=false] [2017-10-09 14:26:52.203]启动-9955调试[disco-event-worker-26%null%]-GridDeploymentLocalStore:本地部署的部署元数据:GridDeploymentMetadata[depMode=SHARED,alias=org.apache.ignite.internal.processors.task.GridTaskProcessor$TaskDiscoveryListener$1,clsName=org.apache.ignite.internal.processors.task.GridTaskProcessor$TaskDiscoveryListener$1,userVer=null,sndNodeId=2e573c60-45f0-4429-a3fa-068489663148,clsLdrId=null,clsLdr=null,participants=null,parentalsldr=null,record=true,nodeFilter=null,seqNum=n/a] [2017-10-09 14:26:52.203]boot-9955调试[disco-event-worker-26%null%]-LocalDeploymentSpi:注册[ldrRsrcs={org.springframework.boot.loader。LaunchedURLClassLoader@7adf9f5f={org.apache.ignite.internal.util.typedef.T2=org.apache.ignite.internal.util.typedef.T2,org.apache.ignite.internal.processors.cache.distributed.dht.preload.IgniteDhtPartitionHistorySuppliersMap=org.apache.ignite.internal.processors.cache.distributed.dht.preload.IgniteDhtPartitionHistory 供应商映射,org.apache.ignite.internal.processors.cache.distributed.dht.preload.GridDhtPartitionFullMap=org.apache.ignite.internal.processors.cache.distributed.dht.preload.GridDhtPartitionFullMap,java.util.Collections$UnmodifiableList=java.util.Collections$UnmodifiableList,org.apache.ignite.internal.visor.cache.VisorCacheMetricsCollectorTask=org.apache.ignite.internal.visor.cache.VisorCacheMetricsCollectorTask,org.apache.ignite.internal.processors.cache.distributed.dht.Preload.IgnitedPartitionStoreLoadMap=org.apache.ignite.internal.processors.distributed.dht.Preload.IgnitedPartitionStoreLoadMap,org.apache.ignite.internal.processors.service.GridServiceProcessor$1=org.apache.ignite.internal.processors.service.GridServiceProcessor$1,org.apache.ignite.internal.processors.cache.distributed.dht.processors.preload.GridDhtPartitionMap=org.apache.ignite.internal.processors.cache.distributed.dht.preload.GridDhtPartitionMap,org.apache.ignite.internal.processors.cache.distributed.dht.preload.IgnitedHttPartitionCounterMap=org.apache.ignite.internal.processors.cache.distributed.dht.preload.IgnitedHttPartitionCounterMap},ldr=org.springframework.boot.loader。LaunchedURLClassLoader@7adf9f5f,rsrc=class org.apache.ignite.internal.processors.task.GridTaskProcessor$TaskDiscoveryListener$1] [2017-10-09 14:26:52.203]boot-9955调试[disco-event-worker-26%null%]-LocalDeploymentSpi:要注册的资源:{org.apache.ignite.internal.processors.task.GridTaskProcessor$TaskDiscoveryListener$1=org.apache.ignite.internal.processors.task.GridTaskProcessor$TaskDiscoveryListener$1} [2017-10-09 14:26:52.203]boot-9955调试[disco-event-worker-26%null%]-LocalDeploymentSpi:新资源:{org.apache.ignite.internal.processors.task.GridTaskProcessor$TaskDiscoveryListener$1=org.apache.ignite.internal.processors.task.GridTaskProcessor$TaskDiscoveryListener$1} [2017-10-09 14:26:52.203]boot-9955调试[disco-event-worker-26%null%]-LocalDeploymentSpi:删除资源[clsLdrToIgnore=org.springframework.boot.loader。LaunchedURLClassLoader@7adf9f5f,rsrcs={org.apache.ignite.internal.processors.task.GridTaskProcessor$TaskDiscoveryListener$1=org.apache.ignite.internal.processors.task.GridTaskProcessor$TaskDiscoveryListener$1}] [2017-10-09 14:26:52.203]启动-9955调试[disco-event-worker-26%null%]-GridDeploymentLocalStore:从spi:DeploymentResourceAdapter检索到自动加载的资源[name=org.apache.ignite.internal.processors.task.GridTaskProcessor$TaskDiscoveryListener$1,rsrcCls=class org.apache.ignite.internal.processors.task.GridTaskProcessor$TaskDiscoveryListener$1,clsLdr=org.springframework.boot.loader。LaunchedURLClassLoader@7adf9f5f] [2017-10-09 14:26:52.203]启动-9955调试[disco-event-worker-26%null%]-GridDeploymentLocalStore:获取的部署类:GridDeployment[ts=1507576972855,depMode=SHARED,clsLdr=org.springframework.boot.loader。LaunchedURLClassLoader@7adf9f5f,clsLdrId=6D9E690F51-2e573c60-45f0-4429-a3fa-068489663148,userVer=0,loc=true,sampleClsName=org.apache.ignite.internal.processors.cache.distributed.dht.preload.GridDhtPartitionFullMap,pendingUndeploy=false,undeployed=false,usage=0] [2017-10-09 14:26:52.203]boot-9955调试[disco-event-worker-26%null%]-GridResourceProcessor:注入资源[target=org.apache.ignite.internal.processors.task.GridTaskProcessor$TaskDiscoveryListener$1@61ea2cff] [2017-10-09 14:26:52.211]启动-9955调试[disco-event-worker-26%null%]-GridDeploymentLocalStore:本地部署的部署元数据:GridDeploymentMetadata[depMode=SHARED,alias=org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor$1$1,clsName=org.apache.ignite.internal.processors.datastructures$1$1,userVer=null,sndNodeId=2e573c60-45f0-4429-a3fa-068489663148,clsLdrId=null,clsLdr=null,参与者=null,parentLdr=null,record=true,nodeFilter=null,seqNum=不适用] [2017-10-09 14:26:52.211]boot-9955调试[disco-event-worker-26%null%]-LocalDeploymentSpi:注册[ldrRsrcs={org.springframework.boot.loader。LaunchedURLClassLoader@7adf9f5f={org.apache.ignite.internal.util.typedef.T2=org.apache.ignite.internal.util.typedef.T2,org.apache.ignite.internal.processors.cache.distributed.dht.processors.cache,org.apache.ignite.internal.processors.cache.distributed.dht.preload.IgniteDhtPartitionHistorySuppliersMap,org.apache.ignite.internal.processors.cache。distributed.dht.Preload.GridDhtPartitionFullMap=org.apache.ignite.internal.processors.cache.distributed.dht.Preload.GridDhtPartitionFullMap,java.util.Collections$UnmodifiableList=java.util.Collections$UnmodifiableList,org.apache.ignite.internal.visor.cache.VisorCache.VisorCacheMetricsCollectorTask=org.apache.ignite.internal.visor.visorscoCollectorTask,org.apache.ignite.internal.processors.cache.distributed.dht.preload.IgniteDhtPartitionsToReloadMap=org.apache.ignite.internal.processors.cache.distributed.dht.preload r、 IgniteDhtPartitionsToReloadMap,org.apache.ignite.internal.processors.service.GridServiceProcessor$1=org.apache.ignite.internal.processors.service.GridServiceProcessor$1,org.apache.ignite.internal.processors.cache.distributed.dht.preload.GridDhtPartitionMap=org.apache.ignite.internal.processors.cache.distributed.dht.preload.GridDhtPartitionMap,org.apache.ignite.internal.processors.cache.distributed.dht.preload.IgnitedHttPartitionCounterMap=org.apache.ignite.internal.processors.cache.distributed.dht.preload.IgnitedHttPartitionCounterMap,org.apache.ignite.internal.processors.task.GridTaskProcessor$TaskDiscoveryListener$1=org.apache.ignite.internal.processors.task.GridTaskProcessor$TaskDiscoveryListener$1},ldr=org.springframework.boot.loader。LaunchedURLClassLoader@7adf9f5f,rsrc=class org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor$1$1] [2017-10-09 14:26:52.211]boot-9955调试[disco-event-worker-26%null%]-LocalDeploymentSpi:Resources to register:{org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor$1$1=org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor$1} [2017-10-09 14:26:52.211]boot-9955调试[disco-event-worker-26%null%]-LocalDeploymentSpi:新资源:{org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor$1$1=org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor$1} [2017-10-09 14:26:52.211]boot-9955调试[disco-event-worker-26%null%]-LocalDeploymentSpi:删除资源[clsLdrToIgnore=org.springframework.boot.loader。LaunchedURLClassLoader@7adf9f5f,rsrcs={org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor$1$1=org.apache.ignite.internal.processors.DataStructuresProcessor$1}] [2017-10-09 14:26:52.211]启动-9955调试[disco-event-worker-26%null%]-GridDeploymentLocalStore:从spi:DeploymentResourceAdapter检索到自动加载的资源[name=org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor$1$1,rsrcCls=class org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor$1$1,clsLdr=org.springframework.boot.loader。LaunchedURLClassLoader@7adf9f5f] [2017-10-09 14:26:52.212]启动-9955调试[disco-event-worker-26%null%]-GridDeploymentLocalStore:获取的部署类:GridDeployment[ts=1507576972855,depMode=SHARED,clsLdr=org.springframework.boot.loader。LaunchedURLClassLoader@7adf9f5f,clsLdrId=6D9E690F51-2e573c60-45f0-4429-a3fa-068489663148,userVer=0,loc=true,sampleClsName=org.apache.ignite.internal.processors.cache.distributed.dht.preload.GridDhtPartitionFullMap,pendingUndeploy=false,undeployed=false,usage=0] [2017-10-09 14:26:52.212]boot-9955调试[disco-event-worker-26%null%]-GridResourceProcessor:注入资源[target=org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor$1$1@1ff41d49] [2017-10-09 14:26:52.213]启动-9955调试[pub-34%null%]-GridClosureProcessor:Grid runnable启动:关闭过程工作程序 [2017-10-09 14:26:52.213]启动-9955调试[pub-34%null%]-GridClosureProcessor:Grid runnable正常完成:关闭进程工作程序 [2017-10-09 14:26:52.216]boot-9955 DEBUG[disco-event-worker-26%null%]-TcpCommunicationSpi:自节点离开后强制NIO客户端关闭[nodeId=4cc6c321-d9cc-4149-a6ef-cba68877a269,client=GridTcpNioCommunicationClient[ses=GridSelectorNioSessionImpl[worker=DirectNioClientWorker[super=AbstractNioClientWorker][idx=3,bytesRcvd=714,bytesRcvd=6799,bytesRcvd0=0,bytesSent0=0,select=true,super=GridWorker[name=grid-nio-worker-tcp-comm-3,igniteInstanceName=null,finished=false,hashCode=1557230104,interrupted=false,runner=grid-nio-worker-tcp-comm-3-20%null%]],writeBuf=java.nio.DirectByteBuffer[0 lim=32768 cap=32768],readBuf=java.nio.DirectByteBuffer[pos=0 lim=32768 cap=32768],inRecovery=GridNioRecoveryDescriptor[acked=0,resendCnt=0,rcvCnt=1,sentCnt=1,reserved=true,lastAck=0,nodeLeft=false,node=TcpDiscoveryNode[id=4cc6c321-d9cc-4149-a6ef-cba68877a269,addrs=[10.70.255.8,127.0.0.0.1,172.17.0.1],addrs=[1.17:0.0.0.0],discPort=0,order=57,intOrder=31,lastExchangeTime=1507577126368,loc=false,ver=2.1.020170720-sha1:a6ca5c8a,isClient=true],connected=true,connectCnt=0,queueLimit=4096,reserveCnt=1,pairedConnections=false],outRecovery=GridNioRecoveryDescriptor[acked=0,resendCnt=0,rcvCnt=1,sentCnt=1,reserved=true,lastAck=0,nodeLeft=false,node=TcpDiscoveryNode[id=4cc6c321-d9cc-4149-a6ef-cba68877a269,addrs=[10.70.255.8127.0.0.1172.17.0.1],sockAddrs=[/172.17.0.1:0,/127.0.0.1:0,/10.70.255.8:0],discPort=0,order=57,intOrder=31,lastExchangeTime=1507577126368,loc=false,ver=2.1.020170720-sha1:a6ca5c8a,isClient=true],connected=true,connectCnt=0,queueLimit=4096,reserveCnt=1,pairedConnections=false],super=GridNioSessionImpl[locAddr=/10.70.242.138:47100,rmtAddr=/10.70.255.8:53916, createTime=1507577162587,closeTime=0,bytesSent=6799,bytesRcvd=714,bytesSent0=0,bytesRcvd0=0,sndSchedTime=1507577162587,lastSndTime=1507577162697,lastRcvTime=1507577162617,ReadSpause=false,filterChain=filterChain[filters=[GridNioCodeFilter[parser=org.apache.ignite.internal.util.nio]。GridDirectParser@9573b3b,directMode=true],GridConnectionBytesVerifyFilter],accepted=true]],super=GridAbstractCommunicationClient[lastUsed=1507577162587,closed=false,connIdx=0]] [2017-10-09 14:26:52.217]boot-9955调试[disco-event-worker-26%null%]-TcpCommunicationSpi:提供移动[ses=gridselectorniosessionimpact[worker=DirectNioClientWorker[super=AbstractNioClientWorker[idx=3,bytesRcvd=714,bytesSent=6799,bytesRcvd0=0,bytesSent0=0,select=true,super=GridWorker[name=grid-nio-worker-tcp-comm-3,igniteInstanceName=null,finished=false,hashCode=1557230104,interrupted=false,runner=grid-nio-worker-tcp-comm-3-20%null%]],writeBuf=java.nio.DirectByteBuffer[pos=0 lim=32768 cap=32768],readBuf=java.nio.DirectByteBuffer[pos=0 lim=32768 cap=32768],inRecovery=gridnio=[acked=0,resendCnt=0,rcvCnt=1,sentCnt=1,reserved=true,lastAck=0,nodeLeft=false,node=TcpDiscoveryNode[id=4cc6c321-d9cc-4149-a6ef-cba68877a269,addrs=[10.70.255.8127.0.0.1172.17.0.1],sockAddrs=[/172.17.0.1:0,/127.0.0.1:0,/10.70.255.8:0],discPort=0,order=57,intOrder=31,lastExchangeTime=1507577126368,loc=false,ver=2.1.020170720-sha1:a6ca5c8a,isClient=true],connected=true,connectCnt=0,queueLimit=4096,reserveCnt=1,pairedConnections=false],outRecovery=GridNioRecoveryDescriptor[acked=0,resendCnt=0,rcvCnt=1,sentCnt=1,reserved=true,lastAck=0,nodeLeft=false,node=TcpDiscoveryNode[id=4cc6c321-d9cc-4149-a6ef-cba68877a269,addrs=[10.70.255.8127.0.0.1172.17.0.1],sockAddrs=[/172.17.0.1:0,/127.0.0.1:0,/10.70.255.8:0],discPort=0,order=57,intOrder=31,lastExchangeTime=1507577126368,loc=false,ver=2.1.020170720-sha1:a6ca5c8a,isClient=true],connected=true,connectCnt=0,queueLimit=4096,reserveCnt=1,pairedConnections=false],super=GridNioSessionImpl[locAddr=/10.70.242.138:47100,rmtAddr=/10.70.255.8:53916,createTime=1507577162587,closeTime=0,bytesSent=6799,bytesRcvd=714,bytesSent0=0,bytesRcvd0=0,sndSchedTime=1507577162587,lastSndTime=1507577162697,lastRcvTime=1507577162617,readsPaused=false,filterChain=false,filterChain=filterChain[FilterConcodeCnioFilterFilter=[GridCodeFilter=][parser=org.apache.ignite.internal.util.nio。GridDirectParser@9573b3b,directMode=true],GridConnectionBytesVerifyFilter],accepted=true]],fut=NioOperationFuture[op=CLOSE]] [2017-10-09 14:26:52.217]启动-9955调试[disco-event-worker-26%null%]-网格管理器:已从发现启动延迟列表发送方节点删除消息左侧拓扑:null [2017-10-09 14:26:52.217]启动-9955调试[pub-35%null%]-GridClosureProcessor:Grid runnable启动:关闭过程工作程序 [2017-10-09 14:26:52.217]启动-9955调试[pub-35%null%]-GridClosureProcessor:Grid runnable正常完成:关闭过程工作程序 [2017-10-09 14:26:52.283]启动-9955调试[grid-timeout-worker-15%null%]-GridTimeoutProcessor:发生超时:org.apache.ignite.internal.processors.cache.transactions.IgniteTxManager$NodeFailureTimeoutObject@7ff59c90 [2017-10-09 14:26:52.284]启动-9955调试[grid-timeout-worker-15%null%]-GridDeploymentLocalStore:本地部署的部署元:GridDeploymentMetadata[depMode=SHARED,别名=org.apache.ignite.internal.processors.cache.transactions.IgniteTxManager$NodeFailureTimeoutObject$2,clsName=org.apache.ignite.internal.processors.cache.transactions.IgniteTxManager$NodeFailureTimeoutObject$2,userVer=null,sndNodeId=2e573c60-45f0-4429-a3fa-068489663148,clsLdrId=null,clsLdr=null,cldr=null,参与者=null,parentL=null,parentLdr=null,record=true,nodeFilter=null,seqNum=n/a] [2017-10-09 14:26:52.285]boot-9955调试[grid-timeout-worker-15%null%]-LocalDeploymentSpi:注册[ldrRsrcs={org.springframework.boot.loader。LaunchedURLClassLoader@7adf9f5f={org.apache.ignite.internal.util.typedef.T2=org.apache.ignite.internal.util.typedef.T2,org.apache.ignite.internal.processors.cache.distributed.dht.processors.cache,org.apache.ignite.internal.processors.cache.distributed.dht.preload.IgniteDhtPartitionHistorySuppliersMap,org.apache.ignite.internal.processors.cache。distributed.dht.Preload.GridDhtPartitionFullMap=org.apache.ignite.internal.processors.cache.distributed.dht.Preload.GridDhtPartitionFullMap,java.util.Collections$UnmodifiableList=java.util.Collections$UnmodifiableList,org.apache.ignite.internal.visor.cache.VisorCache.VisorCacheMetricsCollectorTask=org.apache.ignite.internal.visor.visorscoCollectorTask,org.apache.ignite.internal.processors.cache.distributed.dht.preload.IgniteDhtPartitionsToReloadMap=org.apache.ignite.internal.processors.cache.distributed.processors.org.apache.ignite.internal.processors.service.GridServiceProcessor$1=org.apache.ignite.in ternal.processors.service.GridServiceProcessor$1,org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor$1=org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor$1,org.apache.ignite.internal.processors.cache.distributed.dht.preload.GridDhtPartitionMap=org.apache.ignite.internal.processors.cache.distributed.dht.preload.GridDhtPartitionMap,org.apache.ignite.internal.processors.cache.distributed.dht.preload.IgnitedHttPartitionCounterMap=org.apache.ignite.internal.processors.cache.distributed.dht.preload.IgnitedHttPartitionCounterMap,org.apache.ignite.internal.processors.task.GridTaskProcessor$TaskDiscoveryListener$1=org.apache.ignite.internal.processors.task.GridTaskProcessor$TaskDiscoveryListener$1},ldr=org.springframework.boot.loader。LaunchedURLClassLoader@7adf9f5f,rsrc=class org.apache.ignite.internal.processors.cache.transactions.IgniteTxManager$NodeFailureTimeoutObject$2] 2017-10-09 14:26:52.285]启动-9955调试[grid-timeout-worker-15%null%]-GridDeploymentLocalStore:从spi:DeploymentResourceAdapter检索到自动加载的资源[name=org.apache.ignite.internal.processors.cache.transactions.IgniteTxManager$NodeFailureTimeoutObject$2,rsrcCls=class org.apache.ignite.internal.processors.cache.transactions.IgniteTxManager$NodeFailureTimeoutObject$2,clsLdr=org.springframework.boot.loader。LaunchedURLClassLoader@7adf9f5f] [2017-10-09 14:26:52.285]启动-9955调试[grid-timeout-worker-15%null%]-GridDeploymentLocalStore:获取的部署类:GridDeployment[ts=1507576972855,depMode=SHARED,clsLdr=org.springframework.boot.loader。LaunchedURLClassLoader@7adf9f5f,clsLdrId=6D9E690F51-2e573c60-45f0-4429-a3fa-068489663148,userVer=0,loc=true,sampleClsName=org.apache.ignite.internal.processors.cache.distributed.dht.preload.GridDhtPartitionFullMap,pendingUndeploy=false,undeployed=false,usage=0] [2017-10-09 14:26:52.285]启动-9955调试[grid-timeout-worker-15%null%]-GridResourceProcessor:注入资源[target=org.apache.ignite.internal.processors.cache.transactions.IgniteTxManager$NodeFailureTimeoutObject$2@3f183e4] [2017-10-09 14:26:52.317]启动-9955调试[http-nio-8081-exec-8]-CacheHelper:访问缓存的总时间ng-security-service-ORG_SPEC_cache for key*| value com.cache.model。PrefixCluster@6954be5d:167毫秒 [2017-10-09 14:26:52.319]boot-9955调试[http-nio-8081-exec-8]-OrgSpecCacheImpl:OrgSpec缓存统计信息:OrgSpec ObjId:IgniteCacheProxy[delegate=GridNearCacheAdapter[],opCtx=null,restartFut=null]命中数:126,错误数:53,平均时间:126,逐出计数:0 [2017-10-09 14:26:52.321]启动-9955调试[sys-36%null%]-GridClosureProcessor:Grid runnable启动:关闭过程工作程序


我的问题是,这是预期的行为吗?我们是否可以不绕过近缓存,或者在坏客户端断开连接后使用近缓存重新建立。事实证明,这是近缓存的一个错误。当发生拓扑更改时,它可以清除近缓存GridEntry上的拓扑版本,这将导致每次调用要检查条目是否有效,请返回false


Bug已提交

如何确定客户端在近缓存中发生了哪些未命中事件,以及数据是从数据节点加载的?@NikolayTikhonov我们设置了一个测试来判断性能,该测试将测量每次调用的时间并进行报告。我们一贯认为坏客户端不应影响其他客户端上的近缓存。可能,您有经常更改拓扑结构。您可以共享客户端节点的完整日志吗?@NikolayTikhonov,我更新了问题的更多细节和一些日志。我们必须针对类别,所以请告诉我是否应该在其他区域查找。