Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Ydb.Sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
- dev: LogLevel `Warning` -> `Debug` on AttachStream has been cancelled.

## v0.18.0

- Disable Discovery mode: skip discovery step and client balancing and use connection to start endpoint ([#420](https://github.com/ydb-platform/ydb-dotnet-sdk/issues/420)).
Expand Down
7 changes: 7 additions & 0 deletions src/Ydb.Sdk/src/Services/Query/SessionPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@ protected override async Task<Session> CreateSession()
}
catch (Driver.TransportException e)
{
if (e.Status.StatusCode == StatusCode.Cancelled)
{
Logger.LogDebug("AttachStream is cancelled (possible grpcChannel is closing)");

return;
}

Logger.LogWarning(e, "Session[{SessionId}] is deactivated by transport error", sessionId);
}
}
Expand Down
Loading