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 Chugunov (Jira)" <ji...@apache.org> on 2021/09/01 09:18:01 UTC

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

    [ https://issues.apache.org/jira/browse/IGNITE-15334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17408006#comment-17408006 ] 

Sergey Chugunov commented on IGNITE-15334:
------------------------------------------

[~sergeykad],

Could you please provide more details with us about your case? Why do you need to have a grid of size zero in the first place?

Could you also share stack trace of the error you're mentioning in the ticket?

> 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
>            Priority: Major
>
> 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)