<div dir="ltr"><div><div><div>Hi,<br><br></div>This email follows up on my testing of the Infinispan Cluster Manager for Vert.x on Kubernetes.<br><br>In one of the tests, we want to make sure that, after a rolling update of the application, the data submitted to Vert.x&#39; AsyncMap is still present. And I found that when the underlying cache is predefined in infinispan.xml, the data is present, otherwise it&#39;s not.<br></div><div><br></div>I pushed a simple reproducer on GitHub: <a href="https://github.com/tsegismont/cachedataloss">https://github.com/tsegismont/cachedataloss</a><br><br></div><div>The code does this:<br></div><div>- a first node is started, and creates data<br></div><div>- new nodes are started, but they don&#39;t invoke cacheManager.getCache<br></div><div>- the initial member is killed<br></div><div>- a &quot;testing&quot; member is started, printing out the data in the console<br><br></div><div>Here are my findings.<br><br></div><div>1/ Even when caches are declared in infinispan.xml, the data is lost after the initial member goes away.<br><br></div><div>A little digging showed that the caches are really distributed only after you invoke cacheManager.getCache<br><br></div><div>2/ Checking cluster status &quot;starts&quot; triggers distribution<br><br></div><div>I was wondering why the behavior was not the same as with my Vert.x testing on Openshift. And then realized the only difference was the cluster readiness check, which reads the cluster health. So I updated the reproducer code to add such a check (still without invoking cacheManager.getCache). Then the caches defined in infinispan.xml have their data distributed.<br><br></div><div>So,<br><br></div><div>1/ How can I make sure caches are distributed on all nodes, even if some nodes never try to get a reference with cacheManager.getCache, or don&#39;t check cluster health?<br></div><div>2/ Are we doing something wrong with our way to declare the default configuration for caches [1][2]?<br><br></div><div>Thanks,<br></div><div>Thomas<br><br>[1] <a href="https://github.com/tsegismont/cachedataloss/blob/master/src/main/resources/infinispan.xml#L10">https://github.com/tsegismont/cachedataloss/blob/master/src/main/resources/infinispan.xml#L10</a><br>[2] <a href="https://github.com/tsegismont/cachedataloss/blob/master/src/main/resources/infinispan.xml#L22">https://github.com/tsegismont/cachedataloss/blob/master/src/main/resources/infinispan.xml#L22</a><br></div></div>