Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-13609 Unified CLI tool
  3. IGNITE-13782

Support re-initialization in case of manual folder removal

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha1
    • None
    • Docs Required, Release Notes Required

    Description

      1. Run ignite init
      2. Delete ignite-bin and ignite-work folders
      3. Run ignite node start n1

      These steps result in the following exception:

      Exception in thread "main" java.lang.RuntimeException: java.nio.file.NoSuchFileException: /Users/vkulichenko/GridGain/cli-demo/ignite-bin/2.9.0/cli
      	at org.apache.ignite.internal.v2.builtins.SystemPathResolver.list(SystemPathResolver.java:39)
      	at org.apache.ignite.internal.v2.spec.IgniteCliSpec.loadSubcommands(IgniteCliSpec.java:81)
      	at org.apache.ignite.internal.v2.spec.IgniteCliSpec.lambda$main$0(IgniteCliSpec.java:64)
      	at java.base/java.util.Optional.ifPresent(Optional.java:176)
      	at org.apache.ignite.internal.v2.spec.IgniteCliSpec.main(IgniteCliSpec.java:64)
      Caused by: java.nio.file.NoSuchFileException: /Users/vkulichenko/GridGain/cli-demo/ignite-bin/2.9.0/cli
      	at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
      	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
      	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
      	at java.base/sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:412)
      	at java.base/java.nio.file.Files.newDirectoryStream(Files.java:476)
      	at java.base/java.nio.file.Files.list(Files.java:3765)
      	at org.apache.ignite.internal.v2.builtins.SystemPathResolver.list(SystemPathResolver.java:28)
      	... 4 more
      

      ignite init fails with the same exception as well, so the only way to fix this is to manually delete the .ignitecfg file, which the user is not aware of.

      We should have the support for re-initialization, and suggest to do that in case the described scenario occurs.

      Attachments

        Issue Links

          Activity

            People

              kgusakov Kirill Gusakov
              vkulichenko Valentin Kulichenko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m