[MCOL-4299] cmapi: add-node does not work right after the cmapi service is started Created: 2020-09-08  Updated: 2021-02-20  Resolved: 2021-02-20

Status: Closed
Project: MariaDB ColumnStore
Component/s: cmapi
Affects Version/s: None
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Daniel Lee (Inactive) Assignee: Unassigned
Resolution: Not a Bug Votes: 0
Labels: None


 Description   

Build tested: 1.5.4-1 (Drone #587), cmapi (Drone #251)

In a script, I did:

sudo ./service.sh install
sudo systemctl start mariadb-columnstore-cmapi
curl -k -s -X PUT https://s3pm1:8640/cmapi/0.4.0/cluster/add-node \
--header 'Content-Type:application/json' \
--header "x-api-key:$MCSAPIKEY" \
--data '

{"timeout":120, "node": "s3pm1"}

' \

jq .

the add-node did not return anything. No node was added. I added a "sleep 10" after starting the mariadb-columnstore-cmapi, then the add-node command worked.

It seems that mariadb-columnstore-cmapi service returned to the system prompt before it is ready to take on commands.


Generated at Thu Feb 08 02:49:19 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.