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

Aleksandr updated IGNITE-17110:
-------------------------------
    Description: 
h2. Description

When a user starts REPL by the {{ignite}} command they get 
{{{}[disconnected]{}}}> prompt by default. Even if the user already connected 
to the cluster node in the previous session. 
h2. To-Do

Implement the auto-connect logic for the case described below. The URL for the 
connect command can be taken from the defaults. If the user previously 
connected to the URL that differs from the default one then suggest using the 
last URL as a default.

{code:bash}
$ ignite
> connect to http://host.from.previous.session:10300 ? # this is asked only if 
> the default url is not possible to connect
> yes
[http://host.from.previous.session:10300]> would you like to use 
http://host.from.previous.session:10300 as the default URL?
[http://host.from.previous.session:10300]> no
[http://host.from.previous.session:10300]> {code}
 

  was:
h2. Description

When a user starts REPL by the {{ignite}} command they get 
{{{}[disconnected]{}}}> prompt by default. Even if the user already connected 
to the cluster node in the previous session. 
h2. To-Do

Implement the auto-connect logic for the case described below. The URL for the 
connect command can be taken from the defaults. If the user previously 
connected to the url that differs from the default one suggest to use the last 
url as a default everywhere.
{code:bash}
$ ignite
> connect to http://host.from.previous.session:10300 ? # this is asked only if 
> the default url is not possible to connect
> yes
[http://host.from.previous.session:10300]> would you like to use 
http://host.from.previous.session:10300 as default url?
[http://host.from.previous.session:10300]> no
[http://host.from.previous.session:10300]> {code}
 


> Auto-connect on the REPL start
> ------------------------------
>
>                 Key: IGNITE-17110
>                 URL: https://issues.apache.org/jira/browse/IGNITE-17110
>             Project: Ignite
>          Issue Type: Task
>            Reporter: Aleksandr
>            Priority: Major
>              Labels: ignite-3-cli-tool
>
> h2. Description
> When a user starts REPL by the {{ignite}} command they get 
> {{{}[disconnected]{}}}> prompt by default. Even if the user already connected 
> to the cluster node in the previous session. 
> h2. To-Do
> Implement the auto-connect logic for the case described below. The URL for 
> the connect command can be taken from the defaults. If the user previously 
> connected to the URL that differs from the default one then suggest using the 
> last URL as a default.
> {code:bash}
> $ ignite
> > connect to http://host.from.previous.session:10300 ? # this is asked only 
> > if the default url is not possible to connect
> > yes
> [http://host.from.previous.session:10300]> would you like to use 
> http://host.from.previous.session:10300 as the default URL?
> [http://host.from.previous.session:10300]> no
> [http://host.from.previous.session:10300]> {code}
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to