You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Konstantin Sirotkin (Jira)" <ji...@apache.org> on 2020/07/28 07:14:00 UTC

[jira] [Created] (IGNITE-13305) if create topologyValidator as lambda then get error "Cache topology validator mismatch"

Konstantin Sirotkin created IGNITE-13305:
--------------------------------------------

             Summary: if create topologyValidator as lambda then get error "Cache topology validator mismatch"
                 Key: IGNITE-13305
                 URL: https://issues.apache.org/jira/browse/IGNITE-13305
             Project: Ignite
          Issue Type: Bug
          Components: cache
            Reporter: Konstantin Sirotkin


Check of cache topology validator fails if create it as lambda.

For reproducing: 

In org.apache.ignite.internal.processors.cache.IgniteTopologyValidatorCacheGroupsAbstractTest#getConfiguration

{{{code:java|borderStyle=solid}}}

{{}}

TopologyValidator val1 = new TopologyValidator() {
    @Override public boolean validate(Collection<ClusterNode> nodes) {
        return nodes.size() == 2;
    }
};

{{}}

{{{code}}}

replace on {{}}

{{}}

{{{code:java|borderStyle=solid}}}

TopologyValidator val1 = nodes -> nodes.size() == 2;

{{{code}}}

{{Check fails in }}

{{org.apache.ignite.internal.processors.cache.ClusterCachesInfo#checkCache}}

{{when compare local and remote topologyValidators by class name }}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)