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


##########
modules/client/src/main/java/org/apache/ignite/internal/client/table/ClientTable.java:
##########
@@ -839,25 +868,202 @@ <E> CompletableFuture<List<E>> split(
                         idx++;
                     }
 
-                    List<CompletableFuture<List<E>>> res = new 
ArrayList<>(aff.size());
-                    List<Batch<E>> batches = new ArrayList<>();
+                    CompletableFuture<List<E>> resFut = new 
CompletableFuture<>();
+                    mapAndRetry(fun, keys, txns, mapped, new long[1], resFut, 
log);
+                    return resFut;
+                });
+    }
+
+    private static <R, E> void mapAndRetry(
+            MapFunction<E, R> mapFun,
+            @Nullable R initialValue, Reducer<R> reducer,
+            List<Transaction> txns,
+            Map<Integer, List<E>> mapped,
+            long[] startTs,
+            CompletableFuture<R> resFut,
+            IgniteLogger log
+    ) {
+        if (startTs[0] == 0) {
+            startTs[0] = System.nanoTime();

Review Comment:
   Here we use monotonic clock for measuring transaction timeout condition on a 
client.
   observableTimestamp is unrelated
   



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