[
https://issues.apache.org/jira/browse/CASSSIDECAR-502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bernardo Botella Corbi updated CASSSIDECAR-502:
-----------------------------------------------
Resolution: Fixed
Status: Resolved (was: Triage Needed)
> 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
> Priority: Major
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> 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: when sidecar.schema.is_enabled is false, the table schema is null
> and ConnectedClientStatsDatabaseAccessor fails with a NullPointerException,
> which surfaces as 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]