<div dir="ltr">Dear Wildfly dev team,<div><br></div><div>I am blocked to deploy a test app that use a distributed infinispan cache within 2 domain nodes and a cache entry producer deployed as clustered singleton service.</div><div>Your feedback/advise are really appreciated!</div><div><br></div><div>Cache definition:</div><div><div><br></div><div> <cache-container name="my-cache-container"></div><div> <transport lock-timeout="60000"/></div><div> <distributed-cache name="myAppCache" mode="SYNC"></div><div> <transaction mode="NONE"/></div><div> <eviction strategy="NONE"/></div><div> </distributed-cache></div><div> </cache-container></div></div><div><br></div><div>Sample code:</div><div><br></div><div><div> @Resource(lookup = "java:jboss/infinispan/container/my-cache-container")</div><div> private EmbeddedCacheManager cacheContainer;</div><div><br></div><div> private Cache<Long, Long> myAppCache;</div><div><br></div><div> @PostConstruct</div><div> public void startNotClustered() throws NamingException {</div><div> this.myAppCache = this.cacheContainer.getCache("myAppCache");</div><div> ...</div><div> }</div><div><br></div><div> ...</div><div><br></div><div> @Schedule(hour = "*", minute = "*", second = "*")</div><div> public void consume() {</div><div> <a href="http://logger.info">logger.info</a>("Cache size on node {} = {}",</div><div> System.getProperty("<a href="http://jboss.node.name">jboss.node.name</a>"), myAppCache.size());</div><div> }</div><div><div class="gmail_signature"><div dir="ltr"><div><br></div><div><br></div><div>Server one sample logs:</div><div><div>2016-01-31 14:52:03,789 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 1) Produce new cache entry 1454241123789 on node master:server-one</div><div>2016-01-31 14:52:04,005 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 2) Cache size on node master:server-one = 35</div><div>2016-01-31 14:52:04,796 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 3) Produce new cache entry 1454241124796 on node master:server-one</div><div>2016-01-31 14:52:05,006 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 4) Cache size on node master:server-one = 36</div><div>2016-01-31 14:52:05,801 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 5) Produce new cache entry 1454241125801 on node master:server-one</div><div>2016-01-31 14:52:06,007 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 6) Cache size on node master:server-one = 37</div><div>2016-01-31 14:52:06,807 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 7) Produce new cache entry 1454241126807 on node master:server-one</div><div>2016-01-31 14:52:07,005 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 8) Cache size on node master:server-one = 38</div><div>2016-01-31 14:52:07,813 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 9) Produce new cache entry 1454241127813 on node master:server-one</div><div>2016-01-31 14:52:08,006 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 10) Cache size on node master:server-one = 39</div><div>2016-01-31 14:52:08,817 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 1) Produce new cache entry 1454241128817 on node master:server-one</div><div>2016-01-31 14:52:09,007 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 2) <b>Cache size on node master:server-one = 40</b></div></div><div><br></div><div>Server two logs:</div><div><div>2016-01-31 14:51:56,006 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 4) Cache size on node master:server-two = 0</div><div>2016-01-31 14:51:57,008 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 5) Cache size on node master:server-two = 0</div><div>2016-01-31 14:51:58,007 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 6) Cache size on node master:server-two = 0</div><div>2016-01-31 14:51:59,007 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 7) Cache size on node master:server-two = 0</div><div>2016-01-31 14:52:00,006 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 8) Cache size on node master:server-two = 0</div><div>2016-01-31 14:52:01,008 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 9) Cache size on node master:server-two = 0</div><div>2016-01-31 14:52:02,007 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 10) Cache size on node master:server-two = 0</div><div>2016-01-31 14:52:03,006 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 1) Cache size on node master:server-two = 0</div><div>2016-01-31 14:52:04,007 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 2) Cache size on node master:server-two = 0</div><div>2016-01-31 14:52:05,008 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 3) Cache size on node master:server-two = 0</div><div>2016-01-31 14:52:06,006 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 4) Cache size on node master:server-two = 0</div><div>2016-01-31 14:52:07,006 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 5) Cache size on node master:server-two = 0</div><div>2016-01-31 14:52:08,007 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 6) Cache size on node master:server-two = 0</div><div>2016-01-31 14:52:09,007 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 7) <b>Cache size on node master:server-two = 0</b></div></div><div><br></div><div><br></div><div>I have attached all necessary info to investigate, but I am not sure attachement is allowed, so you can see source and logs here:</div><div><a href="https://www.dropbox.com/s/l1uhmfg5tkjkikw/infinispan-issue-wildfly-10.0.0.zip?dl=0">https://www.dropbox.com/s/l1uhmfg5tkjkikw/infinispan-issue-wildfly-10.0.0.zip?dl=0</a><br></div><div><br></div><div><br></div><span lang="EN-US" style="font-size:10pt;font-family:Arial,sans-serif">С уважением / </span>Cordialement / Best regards,<div><br><div><b>Pierrick </b><font color="#0b5394"><b>HYMBERT</b></font></div><i><a href="mailto:pierrick.hymbert@gmail.com" target="_blank"><font color="#999999" size="1">pierrick.hymbert@gmail.com</font></a></i><div><i><font size="1"><font color="#999999">(+7)916.301-89-13 / (</font><font color="#999999">+33)6.87-52-91-37</font></font></i></div><div><font color="#999999" size="1"><i><a href="https://plus.google.com/u/0/105713262389092625238" target="_blank">+Pierrick</a> / </i><i><a>Skype</a> / </i><i><a href="http://www.linkedin.com/pub/pierrick-hymbert/51/506/357" target="_blank">LinkedIn</a></i></font></div></div></div></div></div>
</div></div>