mirror of https://github.com/apache/cassandra
Add TODO for TxnQuery using wrong cluster metadata
This commit is contained in:
parent
266986b5a2
commit
4088c68d38
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue