Arvind Kandpal created CASSSIDECAR-502:
------------------------------------------
Summary: Connected client stats endpoint returns 500 when sidecar
schema is disabled
Key: CASSSIDECAR-502
URL: https://issues.apache.org/jira/browse/CASSSIDECAR-502
Project: Sidecar for Apache Cassandra
Issue Type: Bug
Components: Rest API
Reporter: Arvind Kandpal
Assignee: Arvind Kandpal
GET /api/v1/cassandra/stats/connected-clients returns 500 when
sidecar.schema.is_enabled is false, which is the default:
{"status":"Internal Server Error","code":500,"message":"Unexpected error
encountered in handler"}
Steps to reproduce:
1. Start Sidecar (trunk) with the default sidecar.yaml, against Cassandra 4.1.
2. curl http://localhost:9043/api/v1/cassandra/stats/connected-clients
Expected: a clear error that says the sidecar schema is required.
Actual: 500 with a generic message.
Root cause: the query depends on the sidecar schema
(sidecar.schema.is_enabled=true), but the handler does not check this before
running and fails with a generic 500.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]