Details
Description
Test case -
test_cbas_node_crash_while_rebalancing_IN_cbas_nodes_does_not_change_actual_number_of_replicas
Steps to reproduce -
- Create 4 node cluster with 2 cbas and 2 KV nodes.
- Set cbas replica to 3.
- create cbas infra like datasets, dataverses and indexes.
- Actual number of replica will be 1, as there are only 2 cbas nodes.
- Now rebalance-In 2 more CBAS nodes.
- while rebalance is happening, stop couchbase server on one of the existing cbas nodes.
- rebalance fails as expected. Verify that no data loss happened on cbas side and the actual replica number is still 1.
- start the couchbase server that was stopped in step 6.
- Try running following query -
2022-01-30 23:08:10,437 | infra | ERROR | MainThread | [Rest_Connection:_http_request:286] POST http://172.23.104.163:8095/analytics/service body: {"pretty": "true", "client_context_id": null, "timeout": "120s", "statement": "set `import-private-functions` `true`;ping()"} headers: {'Accept': '*/*', 'Connection': 'close', 'Authorization': 'Basic QWRtaW5pc3RyYXRvcjpwYXNzd29yZA==', 'Content-Type': 'application/json'} error: 503 reason: unknown {
|
"requestID": "0b454580-c2ac-4cf7-9208-0b7eeb22832f",
|
"clientContextID": "null",
|
"errors": [{
|
"code": 25000, "msg": "Internal error" }
|
],
|
"status": "failed",
|
"metrics": {
|
"elapsedTime": "400.167051ms",
|
"executionTime": "397.788588ms",
|
"resultCount": 0,
|
"resultSize": 0,
|
"processedObjects": 0,
|
"errorCount": 1
|
}
|
} auth: Administrator:password
|