<div dir="ltr"><div class="gmail_extra">I'm not 100% sure, but this sounds like you're hitting ISPN-5141 [1]. Please add your vote, it might make it into 7.2.0.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Lowering the state transfer chunkSize may also help, especially if your values are large. The chunkSize is the number of entries in a single chunk, you should aim at making the average chunk <= 500KB.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Cheers</div><div class="gmail_extra">Dan</div><div class="gmail_extra"><br></div><div class="gmail_extra">[1] <a href="https://issues.jboss.org/browse/ISPN-5141">https://issues.jboss.org/browse/ISPN-5141</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 9, 2015 at 11:48 AM, Andreas Kruthoff <span dir="ltr"><<a href="mailto:andreas.kruthoff@nexustelecom.com" target="_blank">andreas.kruthoff@nexustelecom.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Thanks. The cache is a distributed cache with 3 nodes and replication<br>
factor 2. It contains ~40 million entries. As soon as a node has loaded<br>
all entries from disk, new entries are added to this node with high<br>
frequency (several thousand/s).<br>
<br>
The other nodes might not be up yet. It takes 'forever' to bring them up<br>
then...?<br>
<span class=""><br>
On 02/03/2015 12:32 PM, Dan Berindei wrote:<br>
> Hi Andreas<br>
><br>
> Yes, that's the one. 1200s sounds like a huge timeout, though, how big<br>
> is your cache?<br>
><br>
> Cheers<br>
> Dan<br>
><br>
><br>
> On Thu, Jan 29, 2015 at 7:25 PM, Andreas Kruthoff<br>
> <<a href="mailto:andreas.kruthoff@nexustelecom.com">andreas.kruthoff@nexustelecom.com</a><br>
</span><div><div class="h5">> <mailto:<a href="mailto:andreas.kruthoff@nexustelecom.com">andreas.kruthoff@nexustelecom.com</a>>> wrote:<br>
><br>
> Hi dev<br>
><br>
><br>
> I'm running into the following exception on the 3rd node out of 2.<br>
> Distributed cluster, file store with a few millions of entries.<br>
><br>
> The 3rd node times out during startup, I think. "Initial state transfer<br>
> timed out". How can I configure/increase the timeout in my<br>
> infinispan.xml?<br>
><br>
> Is it <state-transfer timeout="1200000"/> within <distributed cache/> ?<br>
><br>
><br>
> thanks for help<br>
><br>
> -andreas<br>
><br>
><br>
> Exception in thread "main" org.infinispan.commons.CacheException: Unable<br>
> to invoke method public void<br>
> org.infinispan.statetransfer.StateTransferManagerImpl.waitForInitialStateTransferToComplete()<br>
> th<br>
> rows java.lang.InterruptedException on object of type<br>
> StateTransferManagerImpl<br>
> at<br>
> org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:170)<br>
> at<br>
> org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:869)<br>
> at<br>
> org.infinispan.factories.AbstractComponentRegistry.invokeStartMethods(AbstractComponentRegistry.java:638)<br>
> at<br>
> org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:627)<br>
> at<br>
> org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:530)<br>
> at<br>
> org.infinispan.factories.ComponentRegistry.start(ComponentRegistry.java:216)<br>
> at<br>
> org.infinispan.cache.impl.CacheImpl.start(CacheImpl.java:813)<br>
> at<br>
> org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:584)<br>
> at<br>
> org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:539)<br>
> at<br>
> org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:416)<br>
> at<br>
> ch.nexustelecom.lbd.engine.ImeiCache.init(ImeiCache.java:49)<br>
> at<br>
> ch.nexustelecom.dexclient.engine.DefaultDexClientEngine.init(DefaultDexClientEngine.java:120)<br>
> at<br>
> ch.nexustelecom.dexclient.DexClient.initClient(DexClient.java:169)<br>
> at<br>
> ch.nexustelecom.dexclient.tool.DexClientManager.startup(DexClientManager.java:196)<br>
> at<br>
> ch.nexustelecom.dexclient.tool.DexClientManager.main(DexClientManager.java:83)<br>
> Caused by: org.infinispan.commons.CacheException: Initial state transfer<br>
> timed out for cache infinicache-lbd-imei on m4sxhpsrm672-11986<br>
> at<br>
> org.infinispan.statetransfer.StateTransferManagerImpl.waitForInitialStateTransferToComplete(StateTransferManagerImpl.java:216)<br>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
> at<br>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)<br>
> at<br>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>
> at java.lang.reflect.Method.invoke(Method.java:606)<br>
> at<br>
> org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:168)<br>
> ... 14 more<br>
><br>
> This email and any attachment may contain confidential information<br>
> which is intended for use only by the addressee(s) named above. If<br>
> you received this email by mistake, please notify the sender<br>
> immediately, and delete the email from your system. You are<br>
> prohibited from copying, disseminating or otherwise using the email<br>
> or any attachment.<br>
><br>
> _______________________________________________<br>
> infinispan-dev mailing list<br>
</div></div>> <a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a> <mailto:<a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a>><br>
> <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
<div class=""><div class="h5">><br>
><br>
<br>
This email and any attachment may contain confidential information which is intended for use only by the addressee(s) named above. If you received this email by mistake, please notify the sender immediately, and delete the email from your system. You are prohibited from copying, disseminating or otherwise using the email or any attachment.<br>
<br>
_______________________________________________<br>
infinispan-dev mailing list<br>
<a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
</div></div></blockquote></div><br></div></div>