arrow icon indicating copy to clipboard operation
arrow copied to clipboard

[Flight] Flight error status for quota exceeded

Open chairmank opened this issue 3 years ago • 5 comments

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

chairmank avatar Jun 02 '23 14:06 chairmank

Yes, it might be good to just adopt the rest of the gRPC codes while we're at it...

lidavidm avatar Jun 02 '23 17:06 lidavidm

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.

janosik47 avatar Apr 30 '24 19:04 janosik47

Issue resolved by pull request 41508 https://github.com/apache/arrow/pull/41508

lidavidm avatar May 03 '24 06:05 lidavidm

Any chance this can be included in a next release please?

janosik47 avatar Jun 19 '24 10:06 janosik47

Releases happen on a regular schedule. https://lists.apache.org/thread/hob7ozny5f49mgc5hpxz9qlyytp8w38v

lidavidm avatar Jun 19 '24 10:06 lidavidm