dcapwell commented on code in PR #3777:
URL: https://github.com/apache/cassandra/pull/3777#discussion_r1920893301
##########
src/java/org/apache/cassandra/service/accord/txn/TxnQuery.java:
##########
@@ -200,14 +206,17 @@ private TxnQuery() {}
@Override
public Result compute(TxnId txnId, Timestamp executeAt, Seekables<?, ?>
keys, @Nullable Data data, @Nullable Read read, @Nullable Update update)
{
- Epoch epoch = Epoch.create(executeAt.epoch());
- if (transactionIsInMigratingOrMigratedRange(epoch, keys))
+ // TODO (required): This is not the cluster metadata of the current
transaction
+ ClusterMetadata clusterMetadata = ClusterMetadata.current();
+ checkState(clusterMetadata.epoch.getEpoch() >= executeAt.epoch(), "TCM
epoch is < executeAt epoch");
Review Comment:
```suggestion
checkState(clusterMetadata.epoch.getEpoch() >= executeAt.epoch(),
"TCM epoch %d is < executeAt epoch %d", clusterMetadata.epoch.getEpoch(),
executeAt.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]