Bug #108457 document bug - Cluster.dissolve
Submitted: 11 Sep 2022 15:24 Modified: 17 Oct 2022 17:04
Reporter: Hyun Ho JUNG Email Updates:
Status: Not a Bug Impact on me:
None 
Category:Shell AdminAPI InnoDB Cluster / ReplicaSet Severity:S3 (Non-critical)
Version:5.7, 8.0 OS:Any
Assigned to: CPU Architecture:Any
Tags: cluster.dissolve, mysql shell

[11 Sep 2022 15:24] Hyun Ho JUNG
Description:
Hi
There seems to be a typo in the document in the link below.

# Documents
https://dev.mysql.com/doc/mysql-shell/5.7/en/mysql-innodb-cluster-working-with-cluster.htm...
https://dev.mysql.com/doc/mysql-shell/8.0/en/mysql-innodb-cluster-working-with-cluster.htm...

mysql-js> Cluster.dissolve()
          ^
Commands are case-sensitive, but the beginning of the command is written in uppercase.

If I copy and run the command as per the documentation, I get an error.

JS > Cluster.dissolve()
ReferenceError: Cluster is not defined

Thanks

How to repeat:
JS > Cluster.dissolve()

Suggested fix:
JS > Cluster.dissolve()

to

JS > cluster.dissolve()
[15 Sep 2022 11:17] MySQL Verification Team
Hi,

Thanks for the report

all best
[17 Oct 2022 16:18] Edward Gilmore
Posted by developer:
 
Not a bug. While the cases used in the document should be consistent, the issue is not case-sensitivity in the sample commands.
In the command Cluster.dissolve(), "Cluster" is a variable. It must be defined before use.
https://dev.mysql.com/doc/mysql-shell/8.0/en/retrieving-a-handler.html