Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into log-params-customize
Browse files Browse the repository at this point in the history
  • Loading branch information
patrofimov committed Sep 3, 2024
2 parents 6fb0ba0 + 0dcd9de commit 9b035c7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.54 (27-08-2024):

Don't validate stream content if retry is not needed

## 0.1.53 (06-08-2024):

ConnectionTimeout for the last attempt in strategies now is "AlmostInfinity".
Expand Down
6 changes: 3 additions & 3 deletions Vostok.ClusterClient.Core/Modules/RequestRetryModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ public async Task<ClusterResult> ExecuteAsync(IRequestContext context, Func<IReq
if (context.Budget.HasExpired)
return result;

if (!retryPolicy.NeedToRetry(context.Request, context.Parameters, result.ReplicaResults))
return result;

if (context.Request.ContainsAlreadyUsedStream() || context.Request.ContainsAlreadyUsedContent())
{
RequestMiscExtensions.LogRequestDataIsUsed();
return result;
}

if (!retryPolicy.NeedToRetry(context.Request, context.Parameters, result.ReplicaResults))
return result;

attemptsUsed++;
var retryDelay = retryStrategy.GetRetryDelay(context, result, attemptsUsed);
if (!retryDelay.HasValue || retryDelay.Value >= context.Budget.Remaining)
Expand Down
2 changes: 1 addition & 1 deletion Vostok.ClusterClient.Core/Vostok.ClusterClient.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Configurations>Debug;Release</Configurations>
</PropertyGroup>
<PropertyGroup>
<VersionPrefix>0.1.54</VersionPrefix>
<VersionPrefix>0.1.55</VersionPrefix>
</PropertyGroup>
<PropertyGroup>
<Title>Vostok.ClusterClient.Core</Title>
Expand Down

0 comments on commit 9b035c7

Please sign in to comment.