Skip to content

Retry for 50X HTTP Status for GET, POST Methods #128

@kar0t

Description

@kar0t

Hi. Currently, the trino-client-ruby library only performs retries for 503 HTTP status codes.

However, according to the trino client protocol, it should also retry for 502 and 504.

If the client request returns an HTTP 502, 503, or 504, that means there was an intermittent problem processing request and the client should try again in 50-100 ms. Trino does not generate those codes by itself, but those can be generated by load balancers in front of Trino.

We would appreciate a code fix for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions