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/08 11:40:06 UTC

[GitHub] [ignite] ptupitsyn commented on a change in pull request #8004: IGNITE-13214 .NET: Fix TransactionScope for read operations

ptupitsyn commented on a change in pull request #8004:
URL: https://github.com/apache/ignite/pull/8004#discussion_r451477137



##########
File path: modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/CacheAbstractTransactionalTest.cs
##########
@@ -862,6 +862,50 @@ public void TestTransactionScopeAllOperations()
             }
         }
 
+        /// <summary>
+        /// Tests that read operations lock keys in Serializable mode.
+        /// </summary>
+        [Test]
+        public void TestTransactionScopeWithSerializableIsolationLocksKeysOnRead()
+        {
+            Action<Func<ICache<int, int>, int, int>>
+                test = TestTransactionScopeWithSerializableIsolationLocksKeysOnRead;
+
+            test((cache, key) => cache[key]);

Review comment:
       Double checked this - no, `ContainsKey` and `ContainsKeys` do not participate in transactions.




----------------------------------------------------------------
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