[Flight] Flight error status for quota exceeded
Describe the enhancement requested
I would like a Flight error status that communicates that a call was rejected because the client exceeded a usage quota. I do not see such an error status in the code or in the documentation. It is semantically distinct from the Unauthorized or Unavailable statuses.
For Flight over gRPC transport, this error status could map to the RESOURCE_EXHAUSTED gRPC status code (for example, see Google APIs).
This other issue appears to be relevant to my feature request: https://github.com/apache/arrow/issues/34544
Component(s)
FlightRPC
Yes, it might be good to just adopt the rest of the gRPC codes while we're at it...
Any chance to have this fixed? It feels more like a bug rather than an enhancement.
Silently replacing the RESOURCE_EXHAUSTED with INVALID_ARGUMENT changes the meaning of the message send to the other party of the communication. One may decide not to do any retry in case of invalid argument (chances are slim that re-sending the same request will result with any other/better response) where in case of a resource/quota exceeded an exponential backoff and retry is a standard practice.
Issue resolved by pull request 41508 https://github.com/apache/arrow/pull/41508
Any chance this can be included in a next release please?
Releases happen on a regular schedule. https://lists.apache.org/thread/hob7ozny5f49mgc5hpxz9qlyytp8w38v