You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Andrey Davydov <an...@gmail.com> on 2019/12/11 16:03:06 UTC
Detect baseline in TopologyValidator
Hello all,
If there is any way to understand how many nodes from baseline topology are
active in TopologyValidator.validate() method?
Thanks.
Re: Detect baseline in TopologyValidator
Posted by akurbanov <an...@gmail.com>.
Hi,
I would suggest going through TopologyValidator implementations in test and
check out something like:
https://github.com/apache/ignite/blob/master/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteTopologyValidatorGridSplitCacheTest.java
If you want to get the collection of alive baseline nodes, check out for
this method:
org.apache.ignite.internal.managers.discovery.DiscoCache#aliveBaselineNodes
Note that this is internal API and is not exposed to be accessed publicly,
but you can cast Ignite to IgniteEx and access it through calling:
igniteEx.context().discovery().discoCache().aliveBaselineNodes();
Best regards,
Anton
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/