Skip to content

Commit

Permalink
resolve some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yashagarwal23 committed Nov 8, 2023
1 parent d33a26f commit 54dac2c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1136,9 +1136,12 @@ private async Task EnsureLogicalTimeManagerInitializedAsync(CancellationToken ca
while (this.replicaRole == ReplicaRole.Primary && !this.isLogicalTimeManagerInitialized)
{
retryCount++;
ActorTrace.Source.WriteInfoWithId(TraceType, this.traceId, "Waiting for logical Time manager to be initialized");
await Task.Delay(retryCount * StateProviderInitRetryDelayMilliseconds, cancellationToken);
}

ActorTrace.Source.WriteInfoWithId(TraceType, this.traceId, "Logical Time Manager is initialized");

if (this.replicaRole != ReplicaRole.Primary)
{
throw new FabricNotPrimaryException(FabricErrorCode.NotPrimary);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1284,9 +1284,12 @@ private async Task EnsureLogicalTimeManagerInitializedAsync(CancellationToken ca
while (this.replicaRole == ReplicaRole.Primary && !this.isLogicalTimeManagerInitialized)
{
retryCount++;
ActorTrace.Source.WriteInfoWithId(TraceType, this.traceId, "Waiting for logical Time manager to be initialized");
await Task.Delay(retryCount * StateProviderInitRetryDelayMilliseconds, cancellationToken);
}

ActorTrace.Source.WriteInfoWithId(TraceType, this.traceId, "Logical Time Manager is initialized");

if (this.replicaRole != ReplicaRole.Primary)
{
throw new FabricNotPrimaryException(FabricErrorCode.NotPrimary);
Expand Down

0 comments on commit 54dac2c

Please sign in to comment.