stargate / data-api

JSON document API for Apache Cassandra (formerly known as JSON API)
https://stargate.io
Apache License 2.0
13 stars 16 forks source link

Unmapped `AllNodesFailedException` (`SERVER_UNHANDLED_ERROR`): `IllegalArgumentException` with "Invalid or misconfigured tenant ID" not handled #1206

Open tatu-at-datastax opened 3 months ago

tatu-at-datastax commented 3 months ago

Looking at Splunk logs for SERVER_UNHANDLED_ERROR I see this failure:

[java.lang.IllegalArgumentException: [6f21af8e-58a9-42c5-b309-f30d85ffb044|control|id:
 0x54ab8795, L:/127.0.0.1:50040 - R:/127.0.0.1:9042] Protocol initialization request, step 2 
(STARTUP 
{CQL_VERSION=3.0.0, DRIVER_NAME=DataStax Java driver for Apache Cassandra(R),
 DRIVER_VERSION=4.17.0, CLIENT_ID=2be4f31a-2c56-467c-be2f-0dc88e7d43d6,
 APPLICATION_NAME=Astra DB Serverless Data API, TENANT_ID=6f21af8e-58a9-42c5-b309-f30d85ffb044}):
 server replied with unexpected error code [SERVER_ERROR]: Invalid or misconfigured tenant ID]\n\t
at com.datastax.oss.driver.api.core.AllNodesFailedException.copy(AllNodesFailedException.java:141)

which should be handled: should recognize "misconfigured tenant ID" part and map to suitable ErrorCode