ascherbakoff commented on code in PR #6779:
URL: https://github.com/apache/ignite-3/pull/6779#discussion_r2533315186


##########
modules/client/src/main/java/org/apache/ignite/internal/client/table/ClientKeyValueBinaryView.java:
##########
@@ -111,26 +112,26 @@ public CompletableFuture<Map<Tuple, Tuple>> 
getAllAsync(@Nullable Transaction tx
             return emptyMapCompletedFuture();
         }
 
-        BiFunction<Collection<Tuple>, PartitionAwarenessProvider, 
CompletableFuture<Map<Tuple, Tuple>>> clo = (batch, provider) -> {
+        List<Transaction> txns = new ArrayList<>();
+
+        MapFunction<Tuple, Map<Tuple, Tuple>> clo = (batch, provider, 
txRequired) -> {
+            Transaction tx0 = tbl.startTxIfNeeded(tx, txns, txRequired);

Review Comment:
   List of transaction is the **context** for the retryable operation
   I can refactor it to a separate class like **OpContext**, but don't think 
it's needed
   It's not possible to add anything in MapFunction, because it stop being 
functional interface.



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

Reply via email to