long rv = (crc32.getValue() >> 16) & 0x7fff;
int partitionId = (int) rv & config.partitions().size() - 1;
request.partition((short) partitionId);
Partition partition = config.partitions().get(partitionId);
int nodeId;
if (request instanceof ReplicaGetRequest) {
nodeId = partition.replica(((ReplicaGetRequest) request).replica()-1);
} else if(request instanceof ObserveRequest && ((ObserveRequest) request).replica() > 0){
nodeId = partition.replica(((ObserveRequest) request).replica()-1);
} else {
nodeId = partition.master();
}
if (nodeId == -2) {
if (request instanceof ReplicaGetRequest) {
request.observable().onError(new ReplicaNotConfiguredException("Replica number "