Skip to content

Commit

Permalink
Add leave condition to getSession retryer
Browse files Browse the repository at this point in the history
  • Loading branch information
XmasApple committed Sep 28, 2023
1 parent c389d3e commit b62a56b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Ydb.Sdk/src/Services/Table/SessionPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public async Task<GetSessionResponse> GetSession()
for (var attempt = 0; attempt < maxAttempts; attempt++)
{
getSessionResponse = await GetSessionAttempt();
if (getSessionResponse.Status.IsSuccess) return getSessionResponse;
}

_logger.LogError($"Failed to get session from pool or create it (attempts: {maxAttempts})");
Expand Down

0 comments on commit b62a56b

Please sign in to comment.