vldpyatkov commented on code in PR #6307: URL: https://github.com/apache/ignite-3/pull/6307#discussion_r2239425121
########## modules/client-handler/src/main/java/org/apache/ignite/client/handler/requests/table/ClientTableCommon.java: ########## @@ -494,6 +494,7 @@ public static InternalTransaction startExplicitTx( boolean readOnly, InternalTxOptions options ) { + // Provided value will be used on explicit RO transaction start. Review Comment: What do you mean here? If the matter is applicable only to RO, do not set `currentTs` to RW. ########## modules/transactions/src/main/java/org/apache/ignite/internal/tx/impl/ReadOnlyImplicitTransactionImpl.java: ########## @@ -0,0 +1,181 @@ +/* + * 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.tx.impl; + +import static org.apache.ignite.internal.util.CompletableFutures.nullCompletedFuture; + +import java.util.UUID; +import java.util.concurrent.CompletableFuture; +import org.apache.ignite.internal.hlc.HybridTimestamp; +import org.apache.ignite.internal.hlc.HybridTimestampTracker; +import org.apache.ignite.internal.replicator.ReplicationGroupId; +import org.apache.ignite.internal.replicator.TablePartitionId; +import org.apache.ignite.internal.tx.InternalTransaction; +import org.apache.ignite.internal.tx.PendingTxPartitionEnlistment; +import org.apache.ignite.internal.tx.TxState; +import org.apache.ignite.tx.TransactionException; +import org.jetbrains.annotations.Nullable; + +/** + * The special lightweight implementation for read-only implicit transaction. + */ +public class ReadOnlyImplicitTransactionImpl implements InternalTransaction { Review Comment: I would prefer to call it DirectTransactionImpl, as we call the type transaction in the other places. Also, if we do not use RO transaction with implicit flag true, let's remove the corresponding field (IgniteAbstractTransactionImpl#implicit). -- 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: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org