Hi Currently i am trying to load the data into ignite cache using data steamer from Oracle DB.
Currently i have two server nodes deployed on two Linux servers and i am executing this as a standalone java program from my local machine. To achieve this i have followed the below steps. 1. Start in client Mode by setting client node=true in the bean file. 2. Fetch the data from Oracle DB using JDBC resultset and set the fetchsize =100000 for the prepared statement and load this data into a temporary Map Object. 3. Iterate through the map object and load data into cache using stmr.adddata API corresponding data steamer. Out of 1 lakh rows, only 35K rows are getting loaded and the client node is stopped all of a sudden.Can anyone please help me in resolving this issue. Following is the log generated by this program.Attached you the Program code that i am executing and Client.xml file for your reference. Client.xml <http://apache-ignite-users.70518.x6.nabble.com/file/t2737/Client.xml> Java_Program.txt <http://apache-ignite-users.70518.x6.nabble.com/file/t2737/Java_Program.txt> what my understanding after looking at the log is , stmr.adddata retruns IgniteFuture which means it is an async operation and since the program gets ended after completion of iteration with some data yet to load in the cache. May 17, 2020 1:35:29 PM org.apache.ignite.logger.java.JavaLogger error SEVERE: DataStreamer operation failed. class org.apache.ignite.IgniteCheckedException: Data streamer has been cancelled: DataStreamerImpl [bufLdrSzPerThread=4096, rcvr=org.apache.ignite.internal.processors.datastreamer.DataStreamerImpl$IsolatedUpdater@3b0ee03a, ioPlcRslvr=null, cacheName=PieCountryAllocationCache, bufSize=512, parallelOps=0, timeout=-1, autoFlushFreq=0, bufMappings={be10cd31-aed7-448a-8fec-60fd72a62313=Buffer [node=TcpDiscoveryNode [id=be10cd31-aed7-448a-8fec-60fd72a62313, addrs=[127.0.0.1, 172.30.197.5], sockAddrs=[/127.0.0.1:47500, azuswvlnx00687.corp.frk.com/172.30.197.5:47500], discPort=47500, order=1, intOrder=1, lastExchangeTime=1589702634687, loc=false, ver=2.7.6#20190911-sha1:21f7ca41, isClient=false], isLocNode=false, idGen=85, sem=java.util.concurrent.Semaphore@5b12012e[Permits = 15], perNodeParallelOps=64, entriesCnt=2944, locFutsSize=0, reqsSize=49], 92cbed29-93d6-428d-a3da-a30e4264aa20=Buffer [node=TcpDiscoveryNode [id=92cbed29-93d6-428d-a3da-a30e4264aa20, addrs=[127.0.0.1, 172.30.197.6], sockAddrs=[azuswvlnx00688.corp.frk.com/172.30.197.6:47500, /127.0.0.1:47500], discPort=47500, order=2, intOrder=2, lastExchangeTime=1589702635145, loc=false, ver=2.7.6#20190911-sha1:21f7ca41, isClient=false], isLocNode=false, idGen=99, sem=java.util.concurrent.Semaphore@2f7dcef2[Permits = 0], perNodeParallelOps=64, entriesCnt=1152, locFutsSize=0, reqsSize=64]}, cacheObjProc=GridProcessorAdapter [], cacheObjCtx=org.apache.ignite.internal.processors.cache.binary.CacheObjectBinaryContext@4a3be6a5, cancelled=true, cancellationReason=null, failCntr=0, activeFuts=GridConcurrentHashSet [elements=[GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=1579584742], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=2059282367], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=1027006452], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=950125603], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=227100877], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=741370455], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=1536478396], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=1081344572], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=1538745405], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=2000563893], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=997918120], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=985679444], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=1164436797], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=954937264], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=339126187], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=1053856141], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=862152124], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=1934729582]]], jobPda=org.apache.ignite.internal.processors.datastreamer.DataStreamerImpl$DataStreamerPda@3721177d, depCls=null, fut=DataStreamerFuture [super=GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=1986676021]], publicFut=IgniteFuture [orig=DataStreamerFuture [super=GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=1986676021]]], disconnectErr=null, closed=true, lastFlushTime=1589702649336, skipStore=false, keepBinary=false, maxRemapCnt=32, remapSem=java.util.concurrent.Semaphore@14e2e1c3[Permits = 2147483647], remapOwning=false] at org.apache.ignite.internal.processors.datastreamer.DataStreamerImpl.closeEx(DataStreamerImpl.java:1325) at org.apache.ignite.internal.processors.datastreamer.DataStreamerImpl.closeEx(DataStreamerImpl.java:1296) at org.apache.ignite.internal.processors.datastreamer.DataStreamProcessor.onKernalStop(DataStreamProcessor.java:155) at org.apache.ignite.internal.IgniteKernal.stop0(IgniteKernal.java:2280) at org.apache.ignite.internal.IgniteKernal.stop(IgniteKernal.java:2228) at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.stop0(IgnitionEx.java:2617) at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.stop(IgnitionEx.java:2580) at org.apache.ignite.internal.IgnitionEx.stop(IgnitionEx.java:379) at org.apache.ignite.Ignition.stop(Ignition.java:225) at org.apache.ignite.internal.IgniteKernal.close(IgniteKernal.java:3568) at Load.JDBCLoad.main(JDBCLoad.java:145) May 17, 2020 1:35:29 PM org.apache.ignite.logger.java.JavaLogger error SEVERE: Failed to close data streamer: DataStreamerImpl [bufLdrSzPerThread=4096, rcvr=o.a.i.i.processors.datastreamer.DataStreamerImpl$IsolatedUpdater@3b0ee03a, ioPlcRslvr=null, cacheName=PieCountryAllocationCache, bufSize=512, parallelOps=0, timeout=-1, autoFlushFreq=0, bufMappings={be10cd31-aed7-448a-8fec-60fd72a62313=Buffer [node=TcpDiscoveryNode [id=be10cd31-aed7-448a-8fec-60fd72a62313, addrs=[127.0.0.1, 172.30.197.5], sockAddrs=[/127.0.0.1:47500, azuswvlnx00687.corp.frk.com/172.30.197.5:47500], discPort=47500, order=1, intOrder=1, lastExchangeTime=1589702634687, loc=false, ver=2.7.6#20190911-sha1:21f7ca41, isClient=false], isLocNode=false, idGen=85, sem=java.util.concurrent.Semaphore@5b12012e[Permits = 64], perNodeParallelOps=64, entriesCnt=2944, locFutsSize=0, reqsSize=49], 92cbed29-93d6-428d-a3da-a30e4264aa20=Buffer [node=TcpDiscoveryNode [id=92cbed29-93d6-428d-a3da-a30e4264aa20, addrs=[127.0.0.1, 172.30.197.6], sockAddrs=[azuswvlnx00688.corp.frk.com/172.30.197.6:47500, /127.0.0.1:47500], discPort=47500, order=2, intOrder=2, lastExchangeTime=1589702635145, loc=false, ver=2.7.6#20190911-sha1:21f7ca41, isClient=false], isLocNode=false, idGen=99, sem=java.util.concurrent.Semaphore@2f7dcef2[Permits = 64], perNodeParallelOps=64, entriesCnt=1152, locFutsSize=0, reqsSize=64]}, cacheObjProc=GridProcessorAdapter [], cacheObjCtx=o.a.i.i.processors.cache.binary.CacheObjectBinaryContext@4a3be6a5, cancelled=true, cancellationReason=class o.a.i.IgniteCheckedException: Data streamer has been cancelled: DataStreamerImpl [bufLdrSzPerThread=4096, rcvr=o.a.i.i.processors.datastreamer.DataStreamerImpl$IsolatedUpdater@3b0ee03a, ioPlcRslvr=null, cacheName=PieCountryAllocationCache, bufSize=512, parallelOps=0, timeout=-1, autoFlushFreq=0, bufMappings={be10cd31-aed7-448a-8fec-60fd72a62313=Buffer [node=TcpDiscoveryNode [id=be10cd31-aed7-448a-8fec-60fd72a62313, addrs=[127.0.0.1, 172.30.197.5], sockAddrs=[/127.0.0.1:47500, azuswvlnx00687.corp.frk.com/172.30.197.5:47500], discPort=47500, order=1, intOrder=1, lastExchangeTime=1589702634687, loc=false, ver=2.7.6#20190911-sha1:21f7ca41, isClient=false], isLocNode=false, idGen=85, sem=java.util.concurrent.Semaphore@5b12012e[Permits = 15], perNodeParallelOps=64, entriesCnt=2944, locFutsSize=0, reqsSize=49], 92cbed29-93d6-428d-a3da-a30e4264aa20=Buffer [node=TcpDiscoveryNode [id=92cbed29-93d6-428d-a3da-a30e4264aa20, addrs=[127.0.0.1, 172.30.197.6], sockAddrs=[azuswvlnx00688.corp.frk.com/172.30.197.6:47500, /127.0.0.1:47500], discPort=47500, order=2, intOrder=2, lastExchangeTime=1589702635145, loc=false, ver=2.7.6#20190911-sha1:21f7ca41, isClient=false], isLocNode=false, idGen=99, sem=java.util.concurrent.Semaphore@2f7dcef2[Permits = 0], perNodeParallelOps=64, entriesCnt=1152, locFutsSize=0, reqsSize=64]}, cacheObjProc=GridProcessorAdapter [], cacheObjCtx=o.a.i.i.processors.cache.binary.CacheObjectBinaryContext@4a3be6a5, cancelled=true, cancellationReason=null, failCntr=0, activeFuts=GridConcurrentHashSet [elements=[GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=1579584742], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=2059282367], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=1027006452], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=950125603], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=227100877], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=741370455], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=1536478396], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=1081344572], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=1538745405], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=2000563893], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=997918120], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=985679444], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=1164436797], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=954937264], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=339126187], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=1053856141], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=862152124], GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=1934729582]]], jobPda=o.a.i.i.processors.datastreamer.DataStreamerImpl$DataStreamerPda@3721177d, depCls=null, fut=DataStreamerFuture [super=GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=1986676021]], publicFut=IgniteFuture [orig=DataStreamerFuture [super=GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=1986676021]]], disconnectErr=null, closed=true, lastFlushTime=1589702649336, skipStore=false, keepBinary=false, maxRemapCnt=32, remapSem=java.util.concurrent.Semaphore@14e2e1c3[Permits = 2147483647], remapOwning=false], failCntr=18, activeFuts=GridConcurrentHashSet [elements=[]], jobPda=o.a.i.i.processors.datastreamer.DataStreamerImpl$DataStreamerPda@3721177d, depCls=null, fut=DataStreamerFuture [super=GridFutureAdapter [ignoreInterrupts=false, state=DONE, res=class o.a.i.IgniteCheckedException: Some of DataStreamer operations failed [failedCount=18], hash=1986676021]], publicFut=IgniteFuture [orig=DataStreamerFuture [super=GridFutureAdapter [ignoreInterrupts=false, state=DONE, res=class o.a.i.IgniteCheckedException: Some of DataStreamer operations failed [failedCount=18], hash=1986676021]]], disconnectErr=null, closed=true, lastFlushTime=1589702649336, skipStore=false, keepBinary=false, maxRemapCnt=32, remapSem=java.util.concurrent.Semaphore@14e2e1c3[Permits = 2147483647], remapOwning=false] class org.apache.ignite.IgniteCheckedException: Some of DataStreamer operations failed [failedCount=18] at org.apache.ignite.internal.processors.datastreamer.DataStreamerImpl.closeEx(DataStreamerImpl.java:1352) at org.apache.ignite.internal.processors.datastreamer.DataStreamerImpl.closeEx(DataStreamerImpl.java:1296) at org.apache.ignite.internal.processors.datastreamer.DataStreamProcessor.onKernalStop(DataStreamProcessor.java:155) at org.apache.ignite.internal.IgniteKernal.stop0(IgniteKernal.java:2280) at org.apache.ignite.internal.IgniteKernal.stop(IgniteKernal.java:2228) at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.stop0(IgnitionEx.java:2617) at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.stop(IgnitionEx.java:2580) at org.apache.ignite.internal.IgnitionEx.stop(IgnitionEx.java:379) at org.apache.ignite.Ignition.stop(Ignition.java:225) at org.apache.ignite.internal.IgniteKernal.close(IgniteKernal.java:3568) at Load.JDBCLoad.main(JDBCLoad.java:145) -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/