ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mp <mjj...@gmail.com>
Subject Re: Distributed queue problem with peerClassLoading enabled
Date Mon, 02 Nov 2015 14:38:44 GMT
Hi Denis,

I tried PRIVATE deployment mode but either I'm doing something wrong or
distributed cache is not supported for this (and ISOLATED) mode. Is that so?
When queue creation method is called, ie, the line:

      IgniteQueue<Task> queue = ignite.queue("myTaskQueue", 0, new
CollectionConfiguration());

I get the error message: Cannot start cache in PRIVATE or ISOLATED
deployment mode: PRIVATE
(please see bottom of message for full stack trace)

How can I set the userVersion in client code that just starts an ad-hoc
node (configuration in code, node started with
Ignition.start(IgniteConfiguration cfg) method), and then shuts it down
when the client test is done?
Sorry if this can be found in the documentation - I tried to find it but
failed.
Anyway, changing the userVersion in client code (or its configuration)
every time a class is changed will probably not be a valid option for me.
People will certainly sometimes forget to do it. What's dangerous here it
that in such cases (forgetting to change the userVersion) the test will run
on the remote nodes with obsolete code and provide obsolete results, which
I imagine, could lead to confusion.

Cheers,
-Mateusz


stack trace follows:


[14:33:41,907][SEVERE][exchange-worker-#79%null%][GridDhtPartitionsExchangeFuture]
Failed to reinitialize local partitions (preloading will be stopped):
GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=4,
minorTopVer=1], nodeId=97b2c06e, evt=DISCOVERY_CUSTOM_EVT]
class org.apache.ignite.IgniteCheckedException: Cannot start cache in
PRIVATE or ISOLATED deployment mode: PRIVATE
at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.validate(GridCacheProcessor.java:408)
at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.createCache(GridCacheProcessor.java:1268)
at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCacheStart(GridCacheProcessor.java:1642)
at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCachesStart(GridCacheProcessor.java:1567)
at
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.startCaches(GridDhtPartitionsExchangeFuture.java:930)
at
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:506)
at
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:1182)
at
org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
at java.lang.Thread.run(Thread.java:745)
[14:33:41,907][SEVERE][exchange-worker-#79%null%][GridCachePartitionExchangeManager]
Failed to wait for completion of partition map exchange (preloading will
not start): GridDhtPartitionsExchangeFuture [dummy=false,
forcePreload=false, reassign=false, discoEvt=DiscoveryCustomEvent
[customMsg=DynamicCacheChangeBatch [reqs=[DynamicCacheChangeRequest
[deploymentId=dab0768c051-934738fd-3379-458b-b21c-db9061a455c3,
startCfg=CacheConfiguration [name=datastructures_0, rebalancePoolSize=2,
rebalanceTimeout=10000, evictPlc=null, evictSync=false,
evictKeyBufSize=1024, evictSyncConcurrencyLvl=4, evictSyncTimeout=10000,
evictFilter=null, evictMaxOverflowRatio=10.0, eagerTtl=true,
dfltLockTimeout=0, startSize=1500000, nearCfg=null, writeSync=FULL_SYNC,
storeFactory=null, loadPrevVal=false,
aff=o.a.i.cache.affinity.rendezvous.RendezvousAffinityFunction@940d130,
cacheMode=PARTITIONED, atomicityMode=ATOMIC, atomicWriteOrderMode=PRIMARY,
backups=0, invalidate=false, tmLookupClsName=null, rebalanceMode=SYNC,
rebalanceOrder=0, rebalanceBatchSize=524288, offHeapMaxMem=-1,
swapEnabled=false, maxConcurrentAsyncOps=500, writeBehindEnabled=false,
writeBehindFlushSize=10240, writeBehindFlushFreq=5000,
writeBehindFlushThreadCnt=1, writeBehindBatchSize=512,
memMode=ONHEAP_TIERED,
affMapper=o.a.i.i.processors.cache.GridCacheDefaultAffinityKeyMapper@693c7236,
rebalanceDelay=0, rebalanceThrottle=0, interceptor=null,
longQryWarnTimeout=3000, readFromBackup=true,
nodeFilter=o.a.i.configuration.CacheConfiguration$IgniteAllNodesPredicate@655b7adf,
sqlEscapeAll=false, sqlOnheapRowCacheSize=10240, cpOnRead=true,
topValidator=null], cacheType=INTERNAL,
initiatingNodeId=97b2c06e-ea4f-4e6a-a4dd-9e7081056d30, nearCacheCfg=null,
clientStartOnly=false, stop=false, close=false, failIfExists=false,
template=false, exchangeNeeded=true, cacheName=datastructures_0]],
clientNodes=null, id=eab0768c051-934738fd-3379-458b-b21c-db9061a455c3,
clientReconnect=false], affTopVer=AffinityTopologyVersion [topVer=4,
minorTopVer=1], super=DiscoveryEvent [evtNode=TcpDiscoveryNode
[id=97b2c06e-ea4f-4e6a-a4dd-9e7081056d30, addrs=[0:0:0:0:0:0:0:1,
10.48.1.58, 127.0.0.1], sockAddrs=[
DEVSRV4807.deltavista.com/10.48.1.58:47501, /0:0:0:0:0:0:0:1:47501, /
10.48.1.58:47501, /127.0.0.1:47501], discPort=47501, order=4, intOrder=3,
lastExchangeTime=1446471221907, loc=true, ver=1.4.0#20150924-sha1:c2def5f6,
isClient=false], topVer=4, nodeId8=97b2c06e, msg=null,
type=DISCOVERY_CUSTOM_EVT, tstamp=1446471221907]],
rcvdIds=GridConcurrentHashSet [elements=[]], rmtIds=null,
exchId=GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion
[topVer=4, minorTopVer=1], nodeId=97b2c06e, evt=DISCOVERY_CUSTOM_EVT],
init=true, ready=false, replied=false, added=true,
initFut=GridFutureAdapter [resFlag=2, res=false, startTime=1446471221907,
endTime=1446471221907, ignoreInterrupts=false, lsnr=null, state=DONE],
topSnapshot=null, lastVer=null, partReleaseFut=null, skipPreload=false,
clientOnlyExchange=false, oldest=80a54708-220e-45d9-bca4-2269ba1d3c15,
oldestOrder=1, evtLatch=0, remaining=[], super=GridFutureAdapter
[resFlag=1, res=class o.a.i.IgniteCheckedException: Cannot start cache in
PRIVATE or ISOLATED deployment mode: PRIVATE, startTime=1446471221907,
endTime=1446471221907, ignoreInterrupts=false, lsnr=null, state=DONE]]
class org.apache.ignite.IgniteCheckedException: Cannot start cache in
PRIVATE or ISOLATED deployment mode: PRIVATE
at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.validate(GridCacheProcessor.java:408)
at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.createCache(GridCacheProcessor.java:1268)
at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCacheStart(GridCacheProcessor.java:1642)
at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCachesStart(GridCacheProcessor.java:1567)
at
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.startCaches(GridDhtPartitionsExchangeFuture.java:930)
at
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:506)
at
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:1182)
at
org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
at java.lang.Thread.run(Thread.java:745)

Mime
View raw message