tkalkirill commented on code in PR #13889: URL: https://github.com/apache/ignite/pull/13889#discussion_r4749808609
########## modules/calcite/src/test/java/org/apache/ignite/internal/processors/tx/SqlTransactionsDmlTest.java: ########## @@ -0,0 +1,71 @@ +/* + * 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. + */ + +package org.apache.ignite.internal.processors.tx; + +import java.util.List; +import org.apache.ignite.cache.query.FieldsQueryCursor; +import org.apache.ignite.cache.query.SqlFieldsQuery; +import org.apache.ignite.calcite.CalciteQueryEngineConfiguration; +import org.apache.ignite.configuration.IgniteConfiguration; +import org.apache.ignite.internal.IgniteEx; +import org.apache.ignite.internal.processors.query.calcite.GridCommonAbstractWrapperTest; +import org.apache.ignite.transactions.Transaction; +import org.junit.jupiter.api.Test; + +import static org.apache.ignite.transactions.TransactionConcurrency.PESSIMISTIC; +import static org.apache.ignite.transactions.TransactionIsolation.READ_COMMITTED; + +/** */ +public class SqlTransactionsDmlTest extends GridCommonAbstractWrapperTest { Review Comment: The KV tests cover the core behavior. I’d keep this single Calcite test because it reproduces the original user-facing failure. Before the fix, reinserting the same key after a successful DELETE in the same transaction raised a duplicate-key error. ########## modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtTxPrepareFuture.java: ########## @@ -2038,4 +2000,20 @@ private class PrepareTimeoutObject extends GridTimeoutObjectAdapter { return S.toString(PrepareTimeoutObject.class, this); } } + + /** */ + private static TxEntryProcessorChain.Result applyEntryProcessors( + IgniteTxEntry txEntry, @Nullable + CacheObject val, + @Nullable GridCacheVersion ver + ) { + IgniteThread.onEntryProcessorEntered(false); Review Comment: The KV tests cover the core behavior. I’d keep this single Calcite test because it reproduces the original user-facing failure. Before the fix, reinserting the same key after a successful DELETE in the same transaction raised a duplicate-key error. -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
