gurustron commented on a change in pull request #8104: URL: https://github.com/apache/ignite/pull/8104#discussion_r483808115
########## File path: modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/CacheLocalActiveTransactionsTest.cs ########## @@ -0,0 +1,234 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +namespace Apache.Ignite.Core.Tests.Cache +{ + using System; + using System.Linq; + using Apache.Ignite.Core.Cache; + using Apache.Ignite.Core.Cache.Configuration; + using Apache.Ignite.Core.Impl.Transactions; + using Apache.Ignite.Core.Transactions; + using NUnit.Framework; + using NUnit.Framework.Constraints; + + /// <summary> + /// Tests <see cref="ITransactions.GetLocalActiveTransactions"/>. + /// </summary> + public class CacheLocalActiveTransactionsTest : TestBase + { + private const string IgniteInstanceName = "GetLocalActiveTransactionsTest"; + + /// <summary> + /// Fixture setup. + /// </summary> + [TestFixtureSetUp] + public void SetUp() + { + IgniteConfiguration cfg = new IgniteConfiguration(GetConfig()) + { + IgniteInstanceName = IgniteInstanceName + }; + + Ignition.Start(cfg); + } + + /// <summary> + /// Fixture teardown. + /// </summary> + [TestFixtureTearDown] + public void TearDown() + { + Ignition.StopAll(true); + } Review comment: Done. ########## File path: modules/platforms/dotnet/Apache.Ignite.Core/Impl/Transactions/TransactionRollbackOnlyProxy.cs ########## @@ -0,0 +1,251 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +namespace Apache.Ignite.Core.Impl.Transactions +{ + using System; + using System.Diagnostics.CodeAnalysis; + using System.Globalization; + using System.Threading.Tasks; + using Apache.Ignite.Core.Common; + using Apache.Ignite.Core.Impl.Common; + using Apache.Ignite.Core.Transactions; + + /// <summary> + /// Cache transaction proxy which supports only implicit rollback operations and getters. + /// <para/> + /// Does not support the following operations: + /// <list type="bullet"> + /// <item><description><see cref="Commit"/>.</description></item> + /// <item><description><see cref="CommitAsync"/>.</description></item> + /// <item><description>Get <see cref="Meta{TV}"/>.</description></item> + /// <item><description>Get <see cref="AddMeta{TV}"/>.</description></item> + /// <item><description>Get <see cref="RemoveMeta{TV}"/>.</description></item> + /// <item><description>Get <see cref="StartTime"/>.</description></item> + /// <item><description>Get <see cref="ThreadId"/>.</description></item> + /// </list> + /// </summary> + internal class TransactionRollbackOnlyProxy : ITransaction + { + /** Transactions facade. */ + private readonly TransactionsImpl _txs; + + /** Unique transaction view ID. */ + private readonly long _id; + + /** Is closed. */ + private volatile bool _isClosed; + + public TransactionRollbackOnlyProxy( Review comment: Fixed. ---------------------------------------------------------------- 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: [email protected]
