Add TODO for TxnQuery using wrong cluster metadata

This commit is contained in:
Ariel Weisberg 2024-02-15 17:03:01 -05:00 committed by David Capwell
parent 266986b5a2
commit 4088c68d38
1 changed files with 1 additions and 0 deletions

View File

@ -216,6 +216,7 @@ public abstract class TxnQuery implements Query
// and transaction statement will generate an error when it sees
// the RetryOnNewProtocolResult
PartitionKey partitionKey = (PartitionKey)keys.get(0);
// TODO (required): This is looking at ClusterMetadata, but not the ClusterMetadata for the specified epoch, just that epoch or later. Need to store ConsensusMigrationState in the global Topologies Accord stores for itself.
return ConsensusRequestRouter.instance.isKeyInMigratingOrMigratedRangeFromAccord(epoch, partitionKey.table(), partitionKey.partitionKey());
}
}