zettadb / cluster_mgr

Clust_mgr is an important compnent of KunlunBase. It provides a HTTP API for KunlunBase users to do cluster management, provisioning and monitor work, so that uses can install a cluster, a kunlun-server node, a storage shard or a kunlun-storage node by calling such APIs. Such capability enables users to integrate KunlunBase management and provisioning as part of their existing application or GUIs. Cluster_mgr also provide other important cluster maintenance background work to make sure the KunlunBase clusters it serves can work efficiently and reliably.
http://www.kunlunbase.com
Apache License 2.0
10 stars 2 forks source link

invalid json will make cluster_mgr restart #78

Open jd-zhang opened 2 years ago

jd-zhang commented 2 years ago

Issue migrated from trac ticket # 855 www.kunlunbase.com

component: cluster manager | priority: major

2022-06-27 16:52:45: zhangjindong@zettadb.com created the issue


info:

kunlun@kunlun-test2:~/kunlun_scripts/cluster$ curl -d '{"job_type": "get_meta_summary", "version":"1.0"}' -X POST http://192.168.0.111:58000/HttpService/Emit
{"attachment":{"list_meta":[{"hostaddr":"192.168.0.110","master":"true","port":"6001","status":"online"},{"hostaddr":"192.168.0.111","master":"false","port":"6002","status":"online"},{"hostaddr":"192.168.0.100","master":"false","port":"6003","status":"online"}]},"error_code":"0","error_info":"","job_id":"","job_type":"","status":"done","version":"1.0"}

kunlun@kunlun-test2:~/kunlun_scripts/cluster$ curl -d '{"job_type": "get_meta_summary", "version":"1.0"' -X POST http://192.168.0.111:58000/HttpService/Emit
curl: (52) Empty reply from server
kunlun@kunlun-test2:~/kunlun_scripts/cluster$ curl -d '{"job_type": "get_meta_summary", "version":"1.0"}' -X POST http://192.168.0.111:58000/HttpService/Emit
curl: (7) Failed to connect to 192.168.0.111 port 58000: Connection refused