You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2020/07/21 21:26:18 UTC
[GitHub] [ignite] gurustron commented on a change in pull request #7992: IGNITE-7369 .NET: Thin Client Transactions
gurustron commented on a change in pull request #7992:
URL: https://github.com/apache/ignite/pull/7992#discussion_r458397631
##########
File path: modules/platforms/dotnet/Apache.Ignite.Core/Impl/Client/ClientFailoverSocket.cs
##########
@@ -247,6 +256,16 @@ public IEnumerable<IClientConnection> GetConnections()
/// </summary>
private ClientSocket GetSocket()
{
+ var tx = _transactions.CurrentTx;
+ if (tx != null)
+ {
+ if (tx.Socket.IsDisposed)
+ {
+ throw new IgniteClientException("Transaction context has been lost due to connection errors.");
Review comment:
I've added one. Calling dispose o tx should take care of it.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org