You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Alexander Belyak (Jira)" <ji...@apache.org> on 2023/03/29 12:12:00 UTC

[jira] [Created] (IGNITE-19157) AI3 corrupts it's bootstrap config while starting

Alexander Belyak created IGNITE-19157:
-----------------------------------------

             Summary: AI3 corrupts it's bootstrap config while starting
                 Key: IGNITE-19157
                 URL: https://issues.apache.org/jira/browse/IGNITE-19157
             Project: Ignite
          Issue Type: Bug
          Components: general
    Affects Versions: 3.0
            Reporter: Alexander Belyak


After starting AI3 in embedded mode with config from json file, AI3 corrupt that file.

 
{code:java}
import java.nio.file.Path;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import org.apache.ignite.Ignite;
import org.apache.ignite.IgnitionManager;

public class TestStartConfig {
    public static void main(String[] args) throws ExecutionException, InterruptedException {
        CompletableFuture<Ignite> igniteF = IgnitionManager.start("nodeName", Path.of("/tmp/123/ignite-config.json"), Path.of("/tmp/123/nodeName"),
                Thread.currentThread().getContextClassLoader());
        Ignite i = igniteF.get();
        System.out.println(i.name());
        System.out.println("DONE");
    }
}
{code}
with config like

 
{code:java}
{
  "network": {
    "port": 3345,
    "portRange": 10,
    "nodeFinder": {
      "netClusterNodes": [
        "127.0.0.1:3345"
      ]
    }
  }
}
 {code}
starts successfully, but ignite-config.json modified to look like:
{code:java}
network {
    nodeFinder {
        netClusterNodes=[
            "127.0.0.1:3345"
        ]
    }
    port=3345
    portRange=10
}
 {code}
(without first line and quotes).

It leads to unexpected errors on next start.

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)