You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Sergey Kadaner (Jira)" <ji...@apache.org> on 2021/08/18 14:23:00 UTC

[jira] [Created] (IGNITE-15334) Incorrect detection of multiple grid instances

Sergey Kadaner created IGNITE-15334:
---------------------------------------

             Summary: Incorrect detection of multiple grid instances
                 Key: IGNITE-15334
                 URL: https://issues.apache.org/jira/browse/IGNITE-15334
             Project: Ignite
          Issue Type: Bug
    Affects Versions: 2.9.1
            Reporter: Sergey Kadaner


The IgnitionEx class has a validation that checks if SPI supports multiple grid instances. However, the following code is used to check if it is a single instance:
{code:java}
startCtx.single(grids.size() == 1);
{code}
In my case the grid size is zero, therefore startCtx.single is false which triggers an error for SPI that does not support multiple instances.

 

IMHO the the following code should be used instead:
{code:java}
startCtx.single(grids.size() < 2);{code}



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