belliottsmith commented on code in PR #50:
URL: https://github.com/apache/cassandra-accord/pull/50#discussion_r1284875842


##########
accord-core/src/main/java/accord/coordinate/FetchData.java:
##########
@@ -147,13 +147,15 @@ private static Object fetchWithIncompleteRoute(Known 
fetch, Node node, TxnId txn
         });
     }
 
-    public static Object fetch(Known fetch, Node node, TxnId txnId, 
FullRoute<?> route, @Nullable Timestamp executeAt, BiConsumer<Known, Throwable> 
callback)
+    public static Object fetch(Known fetch, Node node, TxnId txnId, 
FullRoute<?> route, @Nullable Timestamp executeAt, BiConsumer<? super Known, 
Throwable> callback)
     {
-        Ranges ranges = node.topology().localRangesForEpochs(txnId.epoch(), 
fetch.fetchEpoch(txnId, executeAt));
-        return fetchInternal(ranges, fetch, node, txnId, 
route.sliceStrict(ranges), executeAt, callback);
+        return node.awaitEpoch(executeAt).map(ignore -> {

Review Comment:
   What if we have received a `TxnId` with a future epoch?



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to