[ 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)