Yury Yudin created IGNITE-18097: ----------------------------------- Summary: CLI should check if it's already connected before trying to connect Key: IGNITE-18097 URL: https://issues.apache.org/jira/browse/IGNITE-18097 Project: Ignite Issue Type: Improvement Components: cli Reporter: Yury Yudin
{code:java} Do you want to reconnect to the last connected node http://localhost:10300? [Y/n] Connected to http://localhost:10300 Would you like to use http://localhost:10300 as the default URL? [Y/n] Config saved [demo1]> connect Connected to http://localhost:10300 [demo1]> connect -v --> GET http://localhost:10300/management/v1/configuration/node <-- 200 OK http://localhost:10300/management/v1/configuration/node (2ms, 783-byte body) --> GET http://localhost:10300/management/v1/node/state <-- 200 OK http://localhost:10300/management/v1/node/state (1ms, 35-byte body) Connected to http://localhost:10300 [demo1]> {code} Currently CLI is trying to connect again even if it's already connected. It should check and report "already connected" if the node we're trying to connect to is the same. Otherwise it should ask the user if he's sure to connect to a different node. -- This message was sent by Atlassian Jira (v8.20.10#820010)