NSAmelchev opened a new pull request, #13835:
URL: https://github.com/apache/ignite/pull/13835

   The confirmation prompt of `control.sh --set-state` printed `null` instead 
of the cluster name:
   
   ```
   Warning: the command will change state of cluster with name "null" to 
INACTIVE.
   ```
   
   The name is what lets an administrator notice that the state of a wrong 
cluster is about to be changed. It was lost in IGNITE-15629: since then only 
the deprecated `--deactivate` command resolved it.
   
   Now `--set-state` resolves the cluster name too. Both commands use the same 
code for that.
   
   Visible changes for `control.sh --set-state`:
   - The prompt shows the cluster name: the `IGNITE_CLUSTER_NAME` system 
property, or the cluster ID if the property is not set.
   - The utility connects to the cluster before it asks for confirmation, so a 
connection or authentication failure is reported before the prompt.
   - One more request is sent to the cluster, the same that `--state` and 
`--deactivate` send. Messages, DTOs and the thin client protocol are not 
changed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to