Bug #108066 clusterset.status() Attempt to read null value
Submitted: 3 Aug 2022 16:54 Modified: 5 Aug 2022 15:22
Reporter: Jay Janssen Email Updates:
Status: Closed Impact on me:
None 
Category:Shell AdminAPI InnoDB Cluster / ReplicaSet Severity:S3 (Non-critical)
Version:8.0.30 OS:Any
Assigned to: MySQL Verification Team CPU Architecture:Any

[3 Aug 2022 16:54] Jay Janssen
Description:
MySQL  10.170.1.106:33060+ ssl  JS > shell.connect("ods.cluster.config@10.170.1.106"); cluster=dba.getCluster(); cs=cluster.getClusterSet()
Creating a session to 'ods.cluster.config@10.170.1.106'
Fetching schema names for autocompletion... Press ^C to stop.
Closing old connection...
Your MySQL connection id is 18353 (X protocol)
Server version: 8.0.30 MySQL Community Server - GPL
No default schema selected; type \use <schema> to set one.
<ClusterSet:jay-test2-global>
 MySQL  10.170.1.106:33060+ ssl  JS > cs.status()
ClusterSet.status: Attempt to read null value (LogicError)

How to repeat:
not sure how I got here.  I attempted to remove a cluster from a cluster set
[3 Aug 2022 16:56] Jay Janssen
debug log

Attachment: mysqlsh.log (application/octet-stream, text), 76.90 KiB.

[5 Aug 2022 15:22] Edward Gilmore
Posted by developer:
 
Added the following note to the MySQL Shell 8.0.31 release notes:

<Clusterset>.status() failed with a logic error if run against a ClusterSet where one or more of the Replica
Clusters were offline and the Group Replication plugin was uninstalled from each member.

       Thanks to Jay Janssen for reporting this issue.
[8 Aug 2022 16:22] Edward Gilmore
Posted by developer:
 
Added the following note to the MySQL Shell 8.0.31 release notes:

<Clusterset>.status() failed with a logic error if run against a ClusterSet
where one or more of the Replica
Clusters were offline and the Group Replication plugin was uninstalled from
each member.

       Thanks to Jay Janssen for reporting this issue.