2017-10-05 155 views
0

當使用近緩存時,一切正常,直到第二個客戶端(可能是遮陽板)嘗試在緩存操作過程中連接或斷開羣集。Apache Ignite臨近緩存總是丟失

第二個客戶端連接/斷開連接後,原始客戶端將始終未命中接近緩存,直到原始客戶端重新啓動。就好像集羣通知客戶他們是問題並保持集羣成爲真相源頭一樣。

我們已經能夠通過運行我們的測試和與遮陽板連接/斷開連接來重現這一點。在斷開連接期間,我們可以看到原始客戶端IgniteTxManager $ NodeFailureTimeoutObject上的日誌中提到的超時。

下面是org.apache.ignite.internal.processors被壓制的日誌片段。

[2017年10月9日14:26:52.148]引導 - 9955 DEBUG [HTTP-NIO-8081-EXEC-8] --- CacheHelper:總時訪問緩存NG-安全服務ORG_SPEC_CACHE爲鍵* |值[email protected]:0 millis [2017-10-09 14:26:52.150] boot - 9955 DEBUG [disco-event-worker-#26%null] --- GridDiscoveryManager:守護程序節點左拓撲:TcpDiscoveryNode [id = 4cc6c321-d9cc-4149-a6ef-cba68877a269,addrs = [10.70.255.8,127.0.0.1,172.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.0#20170720-sha1:a6ca5c8a,isClient = true] [2017-10 -09 14:26:52.150] boot - 9955 DEBUG [http-nio-8081-exec-8] --- OrgSpecCacheImpl:OrgSpec Cache Stats:OrgSpec ObjId:IgniteCacheProxy [delegate = GridNearCacheAdapter [],opCtx = null,restartFut = null ] HitCount:120,MissCount:50,AvgReadTime: 120,Eviction Count:0 [2017-10-09 14:26:52.150] boot - 9955 DEBUG [disco-event-worker-#26%null%] - - GridDeploymentPerV ersionStore:處理節點出發事件:DiscoveryEvent [evtNode = TcpDiscoveryNode [id = 4cc6c321-d9cc-4149-a6ef-cba68877a269,addrs = [10.70.255.8,127.0.0.1,172.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.0#20170720-sha1:a6ca5c8a,isClient = true],topVer = 58,nodeId8 = 2e573c60,msg =節點離開:TcpDiscoveryNode [id = 4cc6c321-d9cc-4149-a6ef-cba68877a269,addrs = [10.70.255.8,127.0.0.1,172.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.0#20170720-sha1 :a6ca5c8a,isClient = true],type = NODE_LEFT,tstamp = 1507577212142] [2017-10-09 14:26:52.163] boot - 9955 INFO [exchange-worker-#27%null%] --- time:Started exchange init [topVer = AffinityTopologyVersion [topVer = 58,minorTopVer = 0],crd = false,evt = 11,node = TcpDiscoveryNode [id = 2e573c60-45f0-4429-a3fa-06848966 3148,addrs = [0:0:0:0:0:0:0:1%lo,10.70.242.138,127.0.0.1],sockAddrs = [port-svc-inc-13.tw-test.net/10.70 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.0#20170720-sha1:a6ca5c8a,isClient = true],evtN​​ode = TcpDiscoveryNode [id = 2e573c60-45f0-4429-a3fa-068489663148,addrs = [0:0:0:0: 0:0:1%lo,10.70.242.138,127.0.0.1],sockAddrs = [port-svc-inc-13.tw-test.net/10.70.242.138:0,/ 0:0: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.0#20170720-sha1:a6ca5c8a ,isClient = true],customEvt = null] [2017-10-09 14:26:52.164] boot-9955 INFO [exchange-worker-#27%null] --- GridDhtPartitionsExchangeFuture:快照初始化完成[topVer = AffinityTopologyVersion [topVer = 58,minorTopVer = 0],time = 0ms] [2017-10-09 14:26:52.164] boot - 9955 INFO [exchange-worker-#27%null%] --- GridDhtParti tionsExchangeFuture:快照初始化完成[topVer = AffinityTopologyVersion [topVer = 58,minorTopVer = 0],time = 0ms] [2017-10-09 14:26:52.164] boot - 9955 INFO [exchange-worker-#27%null% ] ---時間:完成交換初始化[topVer = AffinityTopologyVersion [topVer = 58,minorTopVer = 0],crd = false] [2017-10-09 14:26:52。203] boot - 9955 DEBUG [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,參與者= null,parentLdr = null,record = true,nodeFilter = null,seqNum = n/a] [2017-10-09 14:26:52.203] boot - 9955 DEBUG [disco-event-worker-#26%null%] --- LocalDeploymentSpi:註冊[ldrRsrcs={[email protected]={org.apache.ignite.internal.util.typedef.T2=org.apache.ignite.internal.util.typedef.T2 ,org.apache.ignite.internal.processors.cache.distributed.dht.preloader.IgniteDhtPartitionHistorySuppliersMap = org.apache.ignite.internal.processors.cache.distributed.dht.preloader.I gniteDhtPartitionHistorySuppliersMap,org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionFullMap = org.apache.ignite.internal.processors.cache.distributed.dht.preloader.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.preloader.IgniteDhtPartitionsToReloadMap = org.apache.ignite.internal.processors.cache.distributed.dht.preloader.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.preloader.GridDhtPartitionMap = org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionMap,org.apache。 ignite.internal.pro cessors.cache.distributed.dht.preloader.IgniteDhtPartitionCountersMap = org.apache.ignite.internal.processors.cache.distributed.dht.preloader.IgniteDhtPartitionCountersMap}},[email protected]f5f,rsrc =類別org.apache.ignite.internal.processors.task.GridTaskProcessor $ TaskDiscoveryListener $ 1] [2017-10-09 14:26:52.203] boot - 9955 DEBUG [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 DEBUG [disco-event-worker-#26%null%] --- LocalDeploymentSpi:New resources:{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 DEBUG [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] boot-9955 DEBUG [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,[email protected]df9f5f] [2017-10-09 14:26:52.203 ] boot - 9955 DEBUG [disco-event-worker-#26%null%] --- GridDeploymentLocalStore:Ac需要的部署類:GridDeployment [ts = 1507576972855,depMode = SHARED,[email protected]df9f5f,clsLdrId = 6d9e6920f51-2e573c60-45f0-4429-a3fa-068489663148,userVer = 0,loc = true, sampleClsName = org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionFullMap,pendingUndeploy = false,undeployed = false,usage = 0] [2017-10-09 14:26:52.203] boot - 9955 DEBUG [disco-event-worker-#26%null%] --- GridResourceProcessor:注入資源[target=org.apache.ignite.int[email protected]61ea2cff] [2017-10-09 14:26:52.211] boot-9955 DEBUG [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.DataStructuresProcessor $ 1 $ 1,userVer = null,sndNodeId = 2e573c60-45f0-4429-a3fa-068489663148,clsLdrId = null,clsLdr = null,participants = null,parentLdr = null,record = true,nodeFilter = null,seqNum = n/a] [2017-10-09 14:26:52.211] boot - 9955 DEBUG [disco-event-worker-#26%null%] --- LocalDeploymentSpi:註冊[ldrRsrcs = {org.springframework.boot.loader。已推出的URL類型: .IgniteDhtPartitionHistorySuppliersMap = org.apache.ignite.internal.processors.cache.distributed.dht.preloader.IgniteDhtPartitionHistorySuppliersMap,org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionFullMap = org.apache.ignite.internal .processors.cache.distributed.dht.preloader.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.preloader.IgniteDhtPartitionsToReloadMap = org .apache.ignite.internal.processors.cache.distributed.dht.preloader.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.preloader.GridDhtPartitionMap = org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionMap,org.apache.ignite.internal.processors.cache .distributed.dht.preloader.IgniteDhtPartitionCountersMap = org.apache.ignite.internal.processors.cache.distributed.dht.preloader.IgniteDhtPartitionCountersMap,org.apache.ignite.internal.processors.task.GridTaskProcessor $ TaskDiscoveryListener $ 1 = org.apache。 ignite.internal.processors.task.GridT askProcessor $ TaskDiscoveryListener $ 1}},[email protected]f5f,rsrc = class org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor $ 1 $ 1] [2017-10-09 14:26 :52.211] boot - 9955 DEBUG [disco-event-worker-#26%null%] --- LocalDeploymentSpi:要註冊的資源:{org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor $ 1 $ 1 = org.apache。啓動 - 9955 DEBUG [disco-event-worker-#26%null%] --- LocalDeploymentSpi:新資源: {org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor $ 1 $ 1 = org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor $ 1 $ 1} [2017-10-09 14:26:52.211] boot - 9955 DEBUG [disco-event-worker-#26%null%] --- LocalDeploymentSpi:刪除資源[clsLdrToIgnore = org。 [email protected],rsrcs = {org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor $ 1 $ 1 = org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor $ 1 $ 1}] [2017- 10-09 14:26:52.211] boot-9955 DEBUG [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,[email protected]df9f5f] [2017-10-09 14 :26:52.212] boot - 9955 DEBUG [disco-event-worker-#26%null%] --- GridDeploymentLocalStore:獲取的部署類:GridDeployment [ts = 1507576972855,depMode = SHARED,clsLdr = org.springframework.boot.loader .LaunchedURLClassLoader @ 7adf9f5f,clsLdrId = 6d9e6920f51-2 e573c60-45f0-4429-a3fa-068489663148,userVer = 0,loc = true,sampleClsName = org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionFullMap,pendingUndeploy = false,undeployed = false,usage = 0] [2017-10-09 14:26:52.212] boot - 9955 DEBUG [disco-event-worker-#26%null%] --- GridResourceProcessor:注入資源[target = org.apache.ignite.internal。處理器[email protected]] [2017-10-09 14:26:52.213] boot - 9955 DEBUG [pub-#34%null%] --- GridClosureProcessor:網格可啓動運行:closure-proc-worker [2017-10-09 14:26:52.213] boot-9955 DEBUG [pub-#34%null%] --- GridClosureProcessor:Grid runnable正常結束:closure-proc-worker [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,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 [ inRecovery = GridNioRecoveryDescriptor [acked = 0,resendCnt = 0,rcvCnt = 1,sentCnt = 1,readBuf = java.nio.DirectByteBuffer [pos = 0 lim = 32768 cap = 32768] pos = 0 lim = 32768 cap = 32768] reserved = true,lastAck = 0,nodeLeft = false,node = TcpDiscoveryNode [id = 4cc6c321-d9cc-4149-a6ef-cba68877a269,addrs = [10.70.255.8,127.0.0.1,172.17.0.1],sockAddrs = [/ 172.17。 0.1:0,/127.0.0.1:0,/10.70.255.8,0],discPort = 0,order = 57,intOr der = 31,lastExchangeTime = 1507577126368,loc = false,ver = 2.1.0#20170720-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.8,127.0.0.1,172.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 ,lastChangeTime = 1507577126368,loc = false,ver = 2.1.0#20170720-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 = FilterChain [f ilters = [GridNioCodecFilter [[email protected]b3b,directMode = true],GridConnectionBytesVerifyFilter],accepted = true]],super = GridAbstractCommunicationClient [lastUsed = 1507577162587,closed = false,connIdx = 0]]] [2017-10-09 14:26:52.217] boot - 9955 DEBUG [disco-event-worker-#26%null%] --- TcpCommunicationSpi:Offered move [ses = GridSelectorNioSessionImpl [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,中斷= false,runner = grid-nio-worker-tcp-comm-3-#20%null%]]],writeBuf = java.nio.DirectByteBuffer [pos = 0 lim = 32768 inRecovery = GridNioRecoveryDescriptor [acked = 0,resendCnt = 0,rcvCnt = 1,sentCnt = 1,reserved = true,lastAck = 1],readBuf = java.nio.DirectByteBuffer [pos = 0 lim = 32768 cap = 32768] 0,nodeLeft = false ,node = TcpDiscoveryNode [id = 4cc6c321-d9cc-4149-a6ef-cba68877a269,addrs = [10.70.255.8,127.0.0.1,172.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.0#20170720-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.8,127.0.0.1,172.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.0#20170720-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,clos eTime = 0,bytesSent = 6799,bytesRcvd = 714,bytesSent0 = 0,bytesRcvd0 = 0,sndSchedTime = 1507577162587,lastSndTime = 1507577162697,lastRcvTime = 1507577162617,readsPaused = false,filterChain = FilterChain [filters = [GridNioCodecFilter [parser = org.apache .gnite.internal.util.nio.GridDirectParser @ 9573b3b,directMode = true],GridConnectionBytesVerifyFilter],accepted = true]],fut = NioOperationFuture [op = CLOSE]] [2017-10-09 14:26:52.217] boot - 9955 DEBUG [disco-event-worker-#26%null%] --- GridIoManager:從發現啓動延遲列表中刪除消息(發送者節點左拓撲):null [2017-10-09 14:26:52.217] boot - 9955 DEBUG [pub-#35%null%] --- GridClosureProcessor:網格可啓動運行:closure-proc-worker [2017-10-09 14:26:52.217] boot - 9955 DEBUG [pub-#35%null %] --- GridClosureProcessor:Grid runnable正常結束:closure-proc-worker [2017-10-09 14:26:52。283] boot - 9955 DEBUG [grid-timeout-worker-#15%null%] --- GridTimeoutProcessor:發生超時:org.apache.ignite.internal.process[email protected]7ff59c90 [2017 -10-09 14:26:52.284] boot-9955 DEBUG [grid-timeout-worker-#15%null%] --- GridDeploymentLocalStore:本地部署的部署元:GridDeploymentMetadata [depMode = SHARED,alias = 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- 088489663148,clsLdrId = null,clsLdr = null,participant = null,parentLdr = null,record = true,nodeFilter = null,seqNum = n/a] boot - 9955 DEBUG [ grid-timeout-worker-#15%null%] --- LocalDeploymentSpi:註冊[ldrRsrcs = {org.springframework.boot.loader.Laun [email protected]={org.apache.ignite.internal.util.typedef.T2=org.apache.ignite.internal.util.typedef.T2,org.apache.ignite.internal.processors.cache.distributed.dht.preloader .IgniteDhtPartitionHistorySuppliersMap = org.apache.ignite.internal.processors.cache.distributed.dht.preloader.IgniteDhtPartitionHistorySuppliersMap,org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionFullMap = org.apache.ignite.internal .processors.cache.distributed.dht.preloader.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.preloader.IgniteDhtPartitionsToReloadMap = org.apache.ignite.internal.processors.cache.distributed.dht.preloader.IgniteDhtPartitionsToReloadMap,org.apache .ignite.internal.processors.service.GridServi ceProcessor $ 1 = org.apache.ignite.internal.processors.service.GridServiceProcessor $ 1,org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor $ 1 $ 1 = org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor $ 1 $ 1, org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionMap = org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionMap,org.apache.ignite.internal.processors。 cache.distributed.dht.preloader.IgniteDhtPartitionCountersMap = org.apache.ignite.internal.processors.cache.distributed.dht.preloader.IgniteDhtPartitionCountersMap,org.apache.ignite.internal.processors.task.GridTaskProcessor $ TaskDiscoveryListener $ 1 = org.apache .ignite.internal.processors.task.GridTaskProcessor $ TaskDiscoveryListener $ 1}},[email protected]f5f,rsrc = class org.apache.ignite.internal.processors.cache.transactions.IgniteTxManager $ NodeFailureTimeoutObject $ 2] 2017-10-09 14:26:52.285] boot-9955 DEBUG [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,[email protected]df9f5f ] [2017-10-09 14:26:52.285] boot-9955 DEBUG [grid-timeout-worker-#15%null%] --- GridDeploymentLocalStore:獲取的部署類:GridDeployment [ts = 1507576972855,depMode = SHARED, [email protected]df9f5f,clsLdrId = 6d9e6920f51-2e573c60-45f0-4429-a3fa-068489663148,userVer = 0,loc = true,sampleClsName = org.apache.ignite.internal.processors.cache。 distributed.dht.preloader.GridDhtPartitionFullMap,pendingUndeploy = false,undeployed = false,us年齡= 0] [2017-10-09 14:26:52.285] boot - 9955 DEBUG [grid-timeout-worker-#15%null%] --- GridResourceProcessor:注入資源[target = org.apache.ignite。 internal.processor[email protected]3f183e4] [2017-10-09 14:26:52.317] boot - 9955 DEBUG [http-nio-8081-exec-8] --- CacheHelper:Total time訪問密鑰* |的緩存ng-security-service-ORG_SPEC_CACHE值[email protected]:167毫秒 [2017-10-09 14:26:52.319] boot - 9955 DEBUG [http-nio-8081-exec-8] --- OrgSpecCacheImpl:OrgSpec Cache Stats: OrgSpec ObjId:IgniteCacheProxy [delegate = GridNearCacheAdapter [],opCtx = null,restartFut = null] HitCount:126,MissCount:53,AvgReadTime:126,Eviction Count:0 [2017-10-09 14:26:52。321] boot - 9955 DEBUG [sys-#36%null%] --- GridClosureProcessor:Grid可啓動運行:closure-proc-worker

我的問題是,這是預期的行爲嗎?我們可以讓近緩存不被繞過,或者至少在壞客戶端斷開連接後使用近緩存重新建立。

+0

你如何確定哪些客戶端已在近緩存和數據的缺失,從數據節點裝? –

+0

@NikolayTikhonov我們有一個測試設置來判斷性能,這個測試將測量每次通話的時間並報告回來。對靠近緩存的呼叫,我們始終獲得<1毫秒的時間。使用遮陽板我們可以看到每個呼叫的讀取計數增量。然後,當一個錯誤的客戶端連接時,它跳轉到40毫秒。在visor中查看結果,我們可以看到每次調用的近高速緩存未命中增量。 – timay

+0

壞客戶端應該不會影響到其他客戶端上的高速緩存。很可能,你經常會發生拓撲變化。你能分享來自客戶端節點的完整日誌嗎? –

回答