Hi Ignite community,
when I tried to run some junit tests against Ignite, my tests are basically
some Ignite API(put, getAndPut, getAndReplace...) with a little logic..
if i run these tests one at a time, they all can pass. but if i run all of
them, i found it stuck after 2 or 3 tests, when I debug through it, it shows
that it stuck at cache.put(), more precisely, it is at
IgniteCacheProxy.class line 1502 : delegate.put(K, V)
this is the delegate when I investigate:
GridDhtAtomicCache
[defRes=org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$1@6369d01c,
near=null, super=GridDhtCacheAdapter
[multiTxHolder=java.lang.ThreadLocal@70a54731, stopping=false,
super=GridDistributedCacheAdapter [super=GridCacheAdapter
[locMxBean=org.apache.ignite.internal.processors.cache.CacheLocalMetricsMXBeanImpl@3f142e87,
clusterMxBean=org.apache.ignite.internal.processors.cache.CacheClusterMetricsMXBeanImpl@22dc9d46,
aff=org.apache.ignite.internal.processors.cache.affinity.GridCacheAffinityImpl@63c6c5e5,
igfsDataCache=false, mongoDataCache=false, mongoMetaCache=false,
igfsDataCacheSize=null,
asyncOpsSem=java.util.concurrent.Semaphore@6edb2c7b[Permits = 500],
name=igniteTestCache, size=21]]]]
there is no stack trace in my log, just hang there forever...
and the log show this every few mins:
2017-10-17_17:11:08.741 [WARN ] [grid-timeout-worker-#15%null%]
[o.apache.ignite.internal.diagnostic] Found long running cache future
[startTime=17:02:12.787, curTime=17:11:08.741,
fut=GridNearAtomicSingleUpdateFuture [reqState=Primary
[id=7a113783-2bc9-4b09-af7a-9f5cdd8ce9d8, opRes=false, expCnt=-1, rcvdCnt=0,
primaryRes=false, done=false, waitFor=null, rcvd=null],
super=GridNearAtomicAbstractUpdateFuture [remapCnt=100,
topVer=AffinityTopologyVersion [topVer=1, minorTopVer=0], remapTopVer=null,
err=null, futId=11, super=GridFutureAdapter [ignoreInterrupts=false,
state=INIT, res=null, hash=1194408230]]]]
I'm using Ignite version 2.1, and this is my Ignite config, is there
anything I did it wrong?
<bean id="igniteConfig"
class="org.apache.ignite.configuration.IgniteConfiguration">
<property name="peerClassLoadingEnabled" value="false" />
<property name="clientMode" value="false" />
<property name="gridLogger">
<bean
class="org.apache.ignite.logger.slf4j.Slf4jLogger" />
</property>
<property name="cacheConfiguration">
<list>
<ref bean="cache1" />
</list>
</property>
</bean>
<bean id="cache1"
class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="igniteTestCache" />
<property name="cacheMode" value="PARTITIONED" />
<property name="backups" value="0" />
<property name="atomicityMode" value="ATOMIC" />
<property name="statisticsEnabled" value="true" />
<property name="managementEnabled" value="true" />
<property name="readThrough" value="true" />
<property name="writeThrough" value="true" />
<property name="storeKeepBinary" value="true" />
<property name="cacheStoreFactory">
<bean class="xxx.PIgniteCacheStoreFactory">
<property name="converter" ref="boConverter" />
<property name="valueClass">
<bean class="java.lang.Class"
factory-method="forName">
<constructor-arg
value="xxx.IgniteTest"
/>
</bean>
</property>
</bean>
</property>
<property name="queryEntities">
<list>
<bean
class="org.apache.ignite.cache.QueryEntity">
<property name="keyType"
value="java.lang.String" />
<property name="valueType"
value="IgniteTest" />
<property name="fields">
<map>
<entry key="intf"
value="java.lang.Integer" />
<entry key="longf"
value="java.lang.Long" />
<entry key="doublef"
value="java.lang.Double" />
<entry key="stringf"
value="java.lang.String" />
<entry key="floatf"
value="java.lang.Float" />
<entry key="bo"
value="java.util.Array" />
</map>
</property>
<property name="indexes">
<list>
<bean
class="org.apache.ignite.cache.QueryIndex">
<constructor-arg value="intf" />
</bean>
<bean
class="org.apache.ignite.cache.QueryIndex">
<constructor-arg value="longf" />
</bean>
<bean
class="org.apache.ignite.cache.QueryIndex">
<constructor-arg value="doublef" />
</bean>
<bean
class="org.apache.ignite.cache.QueryIndex">
<constructor-arg value="stringf" />
</bean>
<bean
class="org.apache.ignite.cache.QueryIndex">
<constructor-arg value="floatf" />
</bean>
</list>
</property>
</bean>
</list>
</property>
</bean>
Thanks in advance.
Jeff
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/