Skip to content

Constant PrimaryStatusCheckRetryIntervalInMillis causes potential delay of 512 ms before calling RunAsync on primary replica #244

Open
@LeroyK

Description

@LeroyK

Before a primary replica's RunAsync is called, StatefulServiceReplicaAdapter waits for the partition to become writable. This is currently done at a fixed interval of 512 ms, which could result in a delay of 512 ms for RunAsync to run on a primary replica. For applications that require fast primary replica switches, this is undesirable.

await Task.Delay(PrimaryStatusCheckRetryIntervalInMillis, cancellationToken);

I would like to suggest making this value configurable instead of a constant of more than half a second.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions