[
https://issues.apache.org/jira/browse/IGNITE-15334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17571330#comment-17571330
]
Sergey Kadaner edited comment on IGNITE-15334 at 7/26/22 10:21 AM:
-------------------------------------------------------------------
I was trying to start my service in a development environment without any
actual Ignite server. Caching is not required in such a scenario.
Unfortunately, I do not have the stack trace anymore.
was (Author: sergeykad):
I was trying to start my service in a development environment without any
actual Ignite server. Caching is not required in such a scenario.
Unfortunately I do not have the stack trace anymore.
> 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.20.10#820010)