stargate / data-api

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

Make table vectorize exception go into command process flow #1742

Open Yuqi-Du opened 6 days ago

Yuqi-Du commented 6 days ago

Because vectorize happens before command process flow, we added a block to catch the APIException and turn into uni failure, so it goes into command process flow. And we don't lose any metrics and logging for the APIException.

But note, I keep mention APIException, but Exceptions that are not APIException got slipped away. So the change is APIException -> Exception

fixes: #1730

Checklist