Skip to content

Pub/Sub publisher retrySettings: runtime errors that should be compile time #2721

Description

@kir-titievsky

Publisher built with these retry settings fails at runtime, with generic "illegal argument exception."
The error does point to specific failed pre-conditions, which have to do with minTotalTimeout -- which I had not set here.

        RetrySettings retrySetting = RetrySettings.newBuilder()
                .setInitialRpcTimeout(Duration.ofMillis(500))
                .setMaxAttempts(10)
                .setJittered(Boolean.TRUE)
                .setMaxRpcTimeout(Duration.ofMillis(500))
                .build();

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: pubsubIssues related to the Pub/Sub API.triaged for GAtype: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions