Skip to content

Commit

Permalink
Invalidate session if any but success status received form attach stream
Browse files Browse the repository at this point in the history
  • Loading branch information
XmasApple committed Nov 1, 2023
1 parent 968174b commit 75df84b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/Ydb.Sdk/src/Retry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ public RetrySettings(
public BackoffSettings SlowBackoff { get; }

public bool IsIdempotent { get; set; }
public Action<StatusCode>? Callback { get; set; }

private static readonly BackoffSettings NoBackoff = new(TimeSpan.Zero, 10, 0.5);

Expand Down
3 changes: 1 addition & 2 deletions src/Ydb.Sdk/src/Services/Query/SessionPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ private async Task AttachAndMonitor(string id)
}
}
}

if (part.Status.StatusCode == StatusCode.BadSession)
else
{
InvalidateSession(id);
}
Expand Down

0 comments on commit 75df84b

Please sign in to comment.