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)

Reply via email to