Skip to content

Cosmos SDK - RetryOptions parameters should be optional #27312

Open

Description

Is your feature request related to a problem? Please describe.
Using the Cosmos 4.0 SDK, RetryOptions are parameters are required fields

Describe the solution you'd like
Change interface from:

maxRetryAttemptCount: number;
fixedRetryIntervalInMilliseconds: number;
maxWaitTimeInSeconds: number;

To

maxRetryAttemptCount?: number;
fixedRetryIntervalInMilliseconds?: number;
maxWaitTimeInSeconds?: number;

And merge the input with the defaults so that any undefined parameters are set with the defaults.

Describe alternatives you've considered
Just define everything with the default values. (Also an issue because the default value for fixedRetryIntervalInMilliseconds isn't clearly defined in the documentation

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

Metadata

Labels

ClientThis issue points to a problem in the data-plane of the library.Cosmoscustomer-reportedIssues that are reported by GitHub users external to the Azure organization.feature-requestThis issue requires a new behavior in the product in order be resolved.

Type

No type

Projects

  • Status

    No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions