MySQL Forums
Forum List  »  MySQL & Kubernetes

a lot c++ errors when invoke get_cluster()
Posted by: Bing Ma
Date: October 28, 2025 03:13AM

[2025-10-28 09:05:14,779] kopf.objects [ERROR ] status() failed at mabing1028-1-2.mabing1028-1-instances.default.svc.cluster.local:3306: error=LogicError: Uncaught exception: std::bad_alloc
Traceback (most recent call last):
File "/usr/lib/mysqlsh/python-packages/mysqloperator/controller/diagnose.py", line 147, in diagnose_instance
mstatus = cluster.status({"extended": 1})
RuntimeError: LogicError: Uncaught exception: std::bad_alloc

[2025-10-28 09:05:14,785] kopf.objects [INFO ] ||||do_diagnose_cluster.5.1
[2025-10-28 09:05:14,963] kopf.objects [ERROR ] get_cluster() error for mabing1028-1.mabing1028-instances.default.svc.cluster.local:3306: error=LogicError: Uncaught exception: std::bad_alloc
Traceback (most recent call last):
File "/usr/lib/mysqlsh/python-packages/mysqloperator/controller/diagnose.py", line 119, in diagnose_instance
cluster = dba.get_cluster()
RuntimeError: LogicError: Uncaught exception: std::bad_alloc

[2025-10-28 09:05:14,965] kopf.objects [INFO ] ||||do_diagnose_cluster.5.1
[2025-10-28 09:05:15,022] kopf.objects [ERROR ] get_cluster() error for mabing1028-2-2.mabing1028-2-instances.default.svc.cluster.local:3306: error=LogicError: Uncaught exception: std::bad_alloc
Traceback (most recent call last):
File "/usr/lib/mysqlsh/python-packages/mysqloperator/controller/diagnose.py", line 119, in diagnose_instance
cluster = dba.get_cluster()
RuntimeError: LogicError: Uncaught exception: std::bad_alloc

[2025-10-28 09:05:15,026] kopf.objects [INFO ] ||||do_diagnose_cluster.5.1
[2025-10-28 09:05:15,045] kopf.objects [ERROR ] get_cluster() error for mabing1028-1-0.mabing1028-1-instances.default.svc.cluster.local:3306: error=LogicError: Uncaught exception: std::bad_alloc
Traceback (most recent call last):
File "/usr/lib/mysqlsh/python-packages/mysqloperator/controller/diagnose.py", line 119, in diagnose_instance
cluster = dba.get_cluster()
RuntimeError: LogicError: Uncaught exception: std::bad_alloc

====
I changed the logger.info to logger.exception to get the stack info

Options: Reply• Quote


Subject
Written By
Posted
a lot c++ errors when invoke get_cluster()
October 28, 2025 03:13AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.