@Override
  protected boolean isTokenForRemoteReplicaInfo(RemoteReplicaInfo remoteReplicaInfo,
      RemoteReplicaInfo.ReplicaTokenInfo tokenInfo) {
    // Note that in case of cloudReplicaTokens, the actual remote vcr node might not match as the vcr node is chosen at
    // random during initialization. So it's enough to just match the partitionId in the token so that replication
    // can start from cloud from where it left off.
    return tokenInfo.getPartitionId().equals(remoteReplicaInfo.getReplicaId().getPartitionId());
  }
Check if a token is for the given {@link RemoteReplicaInfo} based on partition id.
@param remoteReplicaInfo The remoteReplicaInfo to check.
@param tokenInfo The tokenInfo to check.
@return true if partition id matches. false otherwise.
ambry-cloud/src/main/java/com/github/ambry/cloud/RecoveryManager.java