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

[jira] [Assigned] (IGNITE-15027) Node fails to start with IndexOutOfBoundsException if metastorage nodes do not exist

     [ https://issues.apache.org/jira/browse/IGNITE-15027?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mirza Aliev reassigned IGNITE-15027:
------------------------------------

    Assignee: Mirza Aliev

> Node fails to start with IndexOutOfBoundsException if metastorage nodes do not exist
> ------------------------------------------------------------------------------------
>
>                 Key: IGNITE-15027
>                 URL: https://issues.apache.org/jira/browse/IGNITE-15027
>             Project: Ignite
>          Issue Type: Bug
>    Affects Versions: 3.0.0-alpha2
>            Reporter: Valentin Kulichenko
>            Assignee: Mirza Aliev
>            Priority: Major
>             Fix For: 3.0.0-alpha3
>
>
> If a node is started with this config...
> {code}
> {
>     "node": {
>         "metastorageNodes": [
>             "node-0", "node-1", "node-2"
>         ]
>     },
>     "network": {
>         "port": 3344,
>         "netClusterNodes": [
>             "localhost:3344"
>         ]
>     }
> }
> {code}
> but with a name that is not present in {{metastorageNodes}}...
> {code}
> IgnitionManager.start("other-name", Files.readString(Path.of("config/ignite-config.json")))
> {code}
> it fails with {{IndexOutOfBoundsException}}:
> {noformat}
> INFO: Started replication server [node=ClusterNode [id=4640f6cd-f2c2-4fcf-9261-560b55190894, name=example-node, host=192.168.2.190, port=3344]]
> Exception in thread "main" java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
> 	at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
> 	at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
> 	at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
> 	at java.base/java.util.Objects.checkIndex(Objects.java:373)
> 	at java.base/java.util.ArrayList.get(ArrayList.java:426)
> 	at org.apache.ignite.internal.raft.Loza.startRaftGroup(Loza.java:76)
> 	at org.apache.ignite.internal.metastorage.MetaStorageManager.<init>(MetaStorageManager.java:133)
> 	at org.apache.ignite.internal.app.IgnitionImpl.start(IgnitionImpl.java:145)
> 	at org.apache.ignite.app.IgnitionManager.start(IgnitionManager.java:45)
> 	at org.apache.ignite.example.table.TableExample.main(TableExample.java:29)
> {noformat}
> Should instead fail with a meaningful error message.



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