You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by "arvindKandpal-ksolves (via GitHub)" <gi...@apache.org> on 2026/10/01 09:32:36 UTC

[PR] CASSSIDECAR-502: Return 503 for connected client stats when schema is disabled [cassandra-sidecar]

arvindKandpal-ksolves opened a new pull request, #387:
URL: https://github.com/apache/cassandra-sidecar/pull/387

   When sidecar.schema.is_enabled is false (default), GET /api/v1/cassandra/stats/connected-clients fails with a NullPointerException and returns a generic 500.
   
   This patch throws OperationUnavailableException in ConnectedClientStatsDatabaseAccessor when the schema is disabled, so the handler returns 503 with a clear message.
   
   Added a unit test in CassandraMetricsOperationsTest. The test fails without the fix.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org


Re: [PR] CASSSIDECAR-502: Return 503 for connected client stats when schema is disabled [cassandra-sidecar]

Posted by "bbotella (via GitHub)" <gi...@apache.org>.
bbotella merged PR #387:
URL: https://github.com/apache/cassandra-sidecar/pull/387


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org


Re: [PR] CASSSIDECAR-502: Return 503 for connected client stats when schema is disabled [cassandra-sidecar]

Posted by "arvindKandpal-ksolves (via GitHub)" <gi...@apache.org>.
arvindKandpal-ksolves commented on PR #387:
URL: https://github.com/apache/cassandra-sidecar/pull/387#issuecomment-5928800553

   cc @yifan-c @frankgh


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org