<div dir="ltr">Thanks Sebastian. Is there a JIRA for this already?<br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-03-27 10:03 GMT+02:00 Sebastian Laskawiec <span dir="ltr">&lt;<a href="mailto:slaskawi@redhat.com" target="_blank">slaskawi@redhat.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">At the moment, the cluster health status checker enumerates all caches in the cache manager [1] and checks whether those cashes are running and not in degraded more [2].<div><br></div><div>I&#39;m not sure how counter caches have been implemented. One thing is for sure - they should be taken into account in this loop [3].<br><div><br></div><div>[1] <a href="https://github.com/infinispan/infinispan/blob/master/core/src/main/java/org/infinispan/health/impl/ClusterHealthImpl.java#L22" target="_blank">https://github.com/<wbr>infinispan/infinispan/blob/<wbr>master/core/src/main/java/org/<wbr>infinispan/health/impl/<wbr>ClusterHealthImpl.java#L22</a></div><div>[2] <a href="https://github.com/infinispan/infinispan/blob/master/core/src/main/java/org/infinispan/health/impl/CacheHealthImpl.java#L25" target="_blank">https://github.com/<wbr>infinispan/infinispan/blob/<wbr>master/core/src/main/java/org/<wbr>infinispan/health/impl/<wbr>CacheHealthImpl.java#L25</a></div></div><div>[3] <a href="https://github.com/infinispan/infinispan/blob/master/core/src/main/java/org/infinispan/health/impl/ClusterHealthImpl.java#L23-L24" target="_blank">https://github.com/<wbr>infinispan/infinispan/blob/<wbr>master/core/src/main/java/org/<wbr>infinispan/health/impl/<wbr>ClusterHealthImpl.java#L23-L24</a></div></div><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><div dir="ltr">On Mon, Mar 26, 2018 at 1:59 PM Thomas SEGISMONT &lt;<a href="mailto:tsegismont@gmail.com" target="_blank">tsegismont@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2018-03-26 13:16 GMT+02:00 Pedro Ruivo <span dir="ltr">&lt;<a href="mailto:pedro@infinispan.org" target="_blank">pedro@infinispan.org</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><br>
<br>
On 23-03-2018 15:06, Thomas SEGISMONT wrote:<br>
&gt; Hi Pedro,<br>
&gt;<br>
&gt; 2018-03-23 13:25 GMT+01:00 Pedro Ruivo &lt;<a href="mailto:pedro@infinispan.org" target="_blank">pedro@infinispan.org</a><br>
</span>&gt; &lt;mailto:<a href="mailto:pedro@infinispan.org" target="_blank">pedro@infinispan.org</a>&gt;&gt;<wbr>:<br>
<span>&gt;<br>
&gt;     Hi Thomas,<br>
&gt;<br>
&gt;     Is the test in question using any counter/lock?<br>
&gt;<br>
&gt;<br>
&gt; I have seen the problem on a test for counters, on another one for<br>
&gt; locks, as well as well as caches only.<br>
&gt; But Vert.x starts the ClusteredLockManager and the CounterManager in all<br>
&gt; cases (even if no lock/counter is created/used)<br>
&gt;<br>
&gt;<br>
&gt;     I did see similar behavior with the counter&#39;s in our server test suite.<br>
&gt;     The partition handling makes the cache degraded because nodes are<br>
&gt;     starting and stopping concurrently.<br>
&gt;<br>
&gt;<br>
&gt; As for me I was able to observe the problem even when stopping nodes one<br>
&gt; after the other and waiting for cluster to go back to HEALTHY status.<br>
&gt; Is it possible that the status of the counter and lock caches are not<br>
&gt; taken into account in cluster health?<br>
<br>
</span>The counter and lock caches are private. So, they aren&#39;t in the cluster<br>
health neither their name are returned by getCacheNames() method.<br></blockquote><div><br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Thanks for the details.<br><br></div><div>I&#39;m not concerned with these internal caches not being listed when calling getCacheNames.<br><br></div><div>However, the cluster health status should include their status as well.<br></div><div>Cluster status testing is the recommended way to implement readiness checks on Kubernetes for example.<br><br></div><div>What do you think Sebastian?<br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="m_-2735177905698863571m_-1628290978142246603h5"><br>
&gt;<br>
&gt;<br>
&gt;     I&#39;m not sure if there are any JIRA to tracking. Ryan, Dan do you know?<br>
&gt;     If there is none, it should be created.<br>
&gt;<br>
&gt;     I improved the counters by making the cache start lazily when you first<br>
&gt;     get or define a counter [1]. This workaround solved the issue for us.<br>
&gt;<br>
&gt;     As a workaround for your test suite, I suggest to make sure the caches<br>
&gt;     (___counter_configuration and org.infinispan.LOCK) have finished their<br>
&gt;     state transfer before stopping the cache managers, by invoking<br>
&gt;     DefaultCacheManager.getCache(<wbr>*cache-name*) in all the caches managers.<br>
&gt;<br>
&gt;     Sorry for the inconvenience and the delay in replying.<br>
&gt;<br>
&gt;<br>
&gt; No problem.<br>
&gt;<br>
&gt;<br>
&gt;     Cheers,<br>
&gt;     Pedro<br>
&gt;<br>
&gt;     [1] <a href="https://issues.jboss.org/browse/ISPN-8860" rel="noreferrer" target="_blank">https://issues.jboss.org/<wbr>browse/ISPN-8860</a><br>
&gt;     &lt;<a href="https://issues.jboss.org/browse/ISPN-8860" rel="noreferrer" target="_blank">https://issues.jboss.org/<wbr>browse/ISPN-8860</a>&gt;<br>
&gt;<br>
&gt;     On 21-03-2018 16:16, Thomas SEGISMONT wrote:<br>
&gt;      &gt; Hi everyone,<br>
&gt;      &gt;<br>
&gt;      &gt; I am working on integrating Infinispan 9.2.Final in vertx-infinispan.<br>
&gt;      &gt; Before merging I wanted to make sure the test suite passed but it<br>
&gt;      &gt; doesn&#39;t. It&#39;s not the always the same test involved.<br>
&gt;      &gt;<br>
&gt;      &gt; In the logs, I see a lot of messages like &quot;After merge (or<br>
&gt;     coordinator<br>
&gt;      &gt; change), cache still hasn&#39;t recovered a majority of members and must<br>
&gt;      &gt; stay in degraded mode.<br>
&gt;      &gt; The context involved are &quot;___counter_configuration&quot; and<br>
&gt;      &gt; &quot;org.infinispan.LOCKS&quot;<br>
&gt;      &gt;<br>
&gt;      &gt; Most often it&#39;s harmless but, sometimes, I also see this exception<br>
&gt;      &gt; &quot;ISPN000210: Failed to request state of cache&quot;<br>
&gt;      &gt; Again the cache involved is either &quot;___counter_configuration&quot; or<br>
&gt;      &gt; &quot;org.infinispan.LOCKS&quot;<br>
&gt;      &gt; After this exception, the cache manager is unable to stop. It<br>
&gt;     blocks in<br>
&gt;      &gt; method &quot;terminate&quot; (join on cache future).<br>
&gt;      &gt;<br>
&gt;      &gt; I thought the test suite was too rough (we stop all nodes at the same<br>
&gt;      &gt; time). So I changed it to make sure that:<br>
&gt;      &gt; - nodes start one after the other<br>
&gt;      &gt; - a new node is started only when the previous one indicates<br>
&gt;     HEALTHY status<br>
&gt;      &gt; - nodes stop one after the other<br>
&gt;      &gt; - a node is stopped only when it indicates HEALTHY status<br>
&gt;      &gt; Pretty much what we do on Kubernetes for the readiness check<br>
&gt;     actually.<br>
&gt;      &gt; But it didn&#39;t get any better.<br>
&gt;      &gt;<br>
&gt;      &gt; Attached are the logs of such a failing test.<br>
&gt;      &gt;<br>
&gt;      &gt; Note that the Vert.x test itself does not fail, it&#39;s only when<br>
&gt;     closing<br>
&gt;      &gt; nodes that we have issues.<br>
&gt;      &gt;<br>
&gt;      &gt; Here&#39;s our XML config:<br>
&gt;      &gt;<br>
&gt;     <a href="https://github.com/vert-x3/vertx-infinispan/blob/ispn92/src/main/resources/default-infinispan.xml" rel="noreferrer" target="_blank">https://github.com/vert-x3/<wbr>vertx-infinispan/blob/ispn92/<wbr>src/main/resources/default-<wbr>infinispan.xml</a><br>
&gt;     &lt;<a href="https://github.com/vert-x3/vertx-infinispan/blob/ispn92/src/main/resources/default-infinispan.xml" rel="noreferrer" target="_blank">https://github.com/vert-x3/<wbr>vertx-infinispan/blob/ispn92/<wbr>src/main/resources/default-<wbr>infinispan.xml</a>&gt;<br>
&gt;      &gt;<br>
&gt;      &gt; Does that ring a bell? Do you need more info?<br>
&gt;      &gt;<br>
&gt;      &gt; Regards,<br>
&gt;      &gt; Thomas<br>
&gt;      &gt;<br>
&gt;      &gt;<br>
&gt;      &gt;<br>
&gt;      &gt; ______________________________<wbr>_________________<br>
&gt;      &gt; infinispan-dev mailing list<br>
&gt;      &gt; <a href="mailto:infinispan-dev@lists.jboss.org" target="_blank">infinispan-dev@lists.jboss.org</a><br>
</div></div>&gt;     &lt;mailto:<a href="mailto:infinispan-dev@lists.jboss.org" target="_blank">infinispan-dev@lists.<wbr>jboss.org</a>&gt;<br>
&gt;      &gt; <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/infinispan-<wbr>dev</a><br>
<span>&gt;     &lt;<a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/infinispan-<wbr>dev</a>&gt;<br>
&gt;      &gt;<br>
&gt;     _____________________________<wbr>__________________<br>
&gt;     infinispan-dev mailing list<br>
</span>&gt;     <a href="mailto:infinispan-dev@lists.jboss.org" target="_blank">infinispan-dev@lists.jboss.<wbr>org</a> &lt;mailto:<a href="mailto:infinispan-dev@lists.jboss.org" target="_blank">infinispan-dev@lists.<wbr>jboss.org</a>&gt;<br>
&gt;     <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/infinispan-<wbr>dev</a><br>
<div class="m_-2735177905698863571m_-1628290978142246603HOEnZb"><div class="m_-2735177905698863571m_-1628290978142246603h5">&gt;     &lt;<a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/infinispan-<wbr>dev</a>&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ______________________________<wbr>_________________<br>
&gt; infinispan-dev mailing list<br>
&gt; <a href="mailto:infinispan-dev@lists.jboss.org" target="_blank">infinispan-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/infinispan-<wbr>dev</a><br>
&gt;<br>
______________________________<wbr>_________________<br>
infinispan-dev mailing list<br>
<a href="mailto:infinispan-dev@lists.jboss.org" target="_blank">infinispan-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/infinispan-<wbr>dev</a><br>
</div></div></blockquote></div></div></div>
______________________________<wbr>_________________<br>
infinispan-dev mailing list<br>
<a href="mailto:infinispan-dev@lists.jboss.org" target="_blank">infinispan-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/infinispan-<wbr>dev</a></blockquote></div>
</div></div><br>______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/infinispan-<wbr>dev</a><br></blockquote></div><br></div>